Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
266,200 | boolean () { return myFix.startInWriteAction(); } | startInWriteAction |
266,201 | IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { return myFix.generatePreview(project, myProblemDescriptor.getDescriptorForPreview(file)); } | generatePreview |
266,202 | boolean () { return myFix instanceof CustomizableIntentionAction ? ((CustomizableIntentionAction)myFix).isShowSubmenu() : CustomizableIntentionAction.super.isShowSubmenu(); } | isShowSubmenu |
266,203 | boolean () { return myFix instanceof CustomizableIntentionAction ? ((CustomizableIntentionAction)myFix).isSelectable() : CustomizableIntentionAction.super.isSelectable(); } | isSelectable |
266,204 | boolean () { return myFix instanceof CustomizableIntentionAction ? ((CustomizableIntentionAction)myFix).isShowIcon() : CustomizableIntentionAction.super.isShowIcon(); } | isShowIcon |
266,205 | String () { return myFix instanceof CustomizableIntentionAction ? ((CustomizableIntentionAction)myFix).getTooltipText() : CustomizableIntentionAction.super.getTooltipText(); } | getTooltipText |
266,206 | List<RangeToHighlight> (@NotNull Editor editor, @NotNull PsiFile file) { return myFix instanceof CustomizableIntentionAction ? ((CustomizableIntentionAction)myFix).getRangesToHighlight(editor, file) : CustomizableIntentionAction.super.getRangesToHighlight(editor, file); } | getRangesToHighlight |
266,207 | String () { return id; } | getDefaultID |
266,208 | String () { return alternativeId; } | getDefaultAlternativeID |
266,209 | boolean (@NotNull Project project, Editor editor, PsiFile file) { if (myStartElement == null) return false; final PsiElement startElement = myStartElement.getElement(); final PsiElement endElement = myEndElement == null ? startElement : myEndElement.getElement(); return startElement != null && endElement != null && sta... | isAvailable |
266,210 | boolean (@NotNull Project project, @NotNull PsiFile file, @Nullable Editor editor, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { return isAvailable(project, file, startElement, endElement); } | isAvailable |
266,211 | void (@NotNull Project project, @NotNull PsiFile file, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { invoke(project, file, null, startElement, endElement); } | invoke |
266,212 | boolean () { return true; } | startInWriteAction |
266,213 | LocalQuickFixAndIntentionActionOnPsiElement (@NotNull ModCommandAction action, @NotNull PsiElement psiElement) { return ModCommandService.getInstance().wrapToLocalQuickFixAndIntentionActionOnPsiElement(action, psiElement); } | from |
266,214 | String () { return myName; } | getName |
266,215 | String () { return myFamilyName; } | getFamilyName |
266,216 | Icon (int flags) { return null; } | getIcon |
266,217 | void (@IntentionName @NotNull String text) { myText = text; } | setText |
266,218 | boolean () { return true; } | startInWriteAction |
266,219 | String () { return getText(); } | toString |
266,220 | boolean (@NotNull Project project, Editor editor, PsiFile file) { if (file == null || editor == null) return false; PsiElement element = getElement(editor, file); return element != null && isAvailable(project, editor, element); } | isAvailable |
266,221 | boolean () { return false; } | isSuppressAll |
266,222 | IntentionPreviewInfo (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { // No preview is necessary for suppress action return IntentionPreviewInfo.EMPTY; } | generatePreview |
266,223 | InspectionManager (Project project) { return project.getService(InspectionManager.class); } | getInstance |
266,224 | String () { return super.getSuppressId(); } | getSuppressId |
266,225 | void (final @NotNull AnalysisScope scope, final @NotNull InspectionManager manager, final @NotNull GlobalInspectionContext globalContext, final @NotNull ProblemDescriptionsProcessor problemDescriptionsProcessor) { globalContext.getRefManager().iterate(new RefVisitor() { @Override public void visitElement(@NotNull RefEn... | runInspection |
266,226 | boolean (@NotNull RefEntity refEntity) { if (refEntity instanceof RefElement) { SmartPsiElementPointer pointer = ((RefElement)refEntity).getPointer(); if (pointer != null) { VirtualFile virtualFile = pointer.getVirtualFile(); if (virtualFile != null && !scope.contains(virtualFile)) return false; } else { RefEntity owne... | isInScope |
266,227 | boolean () { return true; } | isGraphNeeded |
266,228 | boolean () { return true; } | isReadActionNeeded |
266,229 | boolean () { return true; } | isEnabledByDefault |
266,230 | boolean (@NotNull InspectionManager manager, @NotNull GlobalInspectionContext globalContext, @NotNull ProblemDescriptionsProcessor problemDescriptionsProcessor) { return false; } | queryExternalUsagesRequests |
266,231 | void (@NotNull StringBuilder buf, @NotNull RefEntity refEntity, @NotNull HTMLComposer composer) { } | compose |
266,232 | boolean () { return getSharedLocalInspectionTool() == null; } | worksInBatchModeOnly |
266,233 | void (@NotNull PsiElement psiElement, @NotNull @InspectionMessage String descriptionTemplate, @NotNull LocalQuickFix @Nullable ... fixes) { registerProblem(psiElement, descriptionTemplate, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, fixes); } | registerProblem |
266,234 | void (@NotNull PsiElement psiElement, @NotNull @InspectionMessage String descriptionTemplate, @NotNull ProblemHighlightType highlightType, @NotNull LocalQuickFix @Nullable ... fixes) { registerProblem(myManager.createProblemDescriptor(psiElement, descriptionTemplate, myOnTheFly, fixes, highlightType)); } | registerProblem |
266,235 | void (@NotNull ProblemDescriptor problemDescriptor) { PsiElement element = problemDescriptor.getPsiElement(); if (element != null && !isInPsiFile(element)) { ExternallyDefinedPsiElement external = PsiTreeUtil.getParentOfType(element, ExternallyDefinedPsiElement.class, false); if (external != null) { PsiElement newTarge... | registerProblem |
266,236 | boolean (@NotNull PsiElement element) { PsiFile file = element.getContainingFile(); return file != null && myFile.getViewProvider() == file.getViewProvider(); } | isInPsiFile |
266,237 | void (@NotNull ProblemDescriptor problem, @NotNull PsiElement target) { PsiElement original = problem.getPsiElement(); VirtualFile vFile = original.getContainingFile().getVirtualFile(); assert vFile != null; String path = FileUtil.toSystemIndependentName(vFile.getPath()); String description = XmlStringUtil.stripHtml(pr... | redirectProblem |
266,238 | void (@NotNull PsiReference reference, @InspectionMessage String descriptionTemplate, ProblemHighlightType highlightType) { LocalQuickFix[] fixes = null; if (reference instanceof LocalQuickFixProvider) { fixes = ((LocalQuickFixProvider)reference).getQuickFixes(); } registerProblemForReference(reference, highlightType, ... | registerProblem |
266,239 | void (@NotNull PsiReference reference, @NotNull ProblemHighlightType highlightType, @NotNull @InspectionMessage String descriptionTemplate, @NotNull LocalQuickFix @Nullable ... fixes) { ProblemDescriptor descriptor = myManager.createProblemDescriptor(reference.getElement(), reference.getRangeInElement(), descriptionTem... | registerProblemForReference |
266,240 | void (@NotNull PsiReference reference) { registerProblem(reference, unresolvedReferenceMessage(reference), ProblemHighlightType.LIKE_UNKNOWN_SYMBOL); } | registerProblem |
266,241 | void (@NotNull PsiReference reference, @NotNull ProblemHighlightType highlightType) { registerProblem(reference, unresolvedReferenceMessage(reference), highlightType); } | registerProblem |
266,242 | void (PsiElement identifier) { registerProblem(identifier, "possible problem", ProblemHighlightType.POSSIBLE_PROBLEM); } | registerPossibleProblem |
266,243 | void (@NotNull PsiElement psiElement, @Nullable TextRange rangeInElement, @NotNull @InspectionMessage String descriptionTemplate, @NotNull LocalQuickFix @Nullable ... fixes) { registerProblem(psiElement, descriptionTemplate, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, rangeInElement, fixes); } | registerProblem |
266,244 | void (@NotNull PsiElement psiElement, @NotNull @InspectionMessage String descriptionTemplate, @NotNull ProblemHighlightType highlightType, @Nullable TextRange rangeInElement, @NotNull LocalQuickFix @Nullable ... fixes) { registerProblem(myManager.createProblemDescriptor(psiElement, rangeInElement, descriptionTemplate, ... | registerProblem |
266,245 | List<ProblemDescriptor> () { return myProblems; } | getResults |
266,246 | InspectionManager () { return myManager; } | getManager |
266,247 | boolean () { return !myProblems.isEmpty(); } | hasResults |
266,248 | int () { return myProblems.size(); } | getResultCount |
266,249 | boolean () { return myOnTheFly; } | isOnTheFly |
266,250 | PsiFile () { return myFile; } | getFile |
266,251 | Project () { return myManager.getProject(); } | getProject |
266,252 | ProblemBuilder (@NotNull PsiElement psiElement, @InspectionMessage @NotNull String descriptionTemplate) { return new ProblemBuilder(psiElement, descriptionTemplate); } | problem |
266,253 | ProblemBuilder (ProblemHighlightType problemHighlightType) { myHighlightType = problemHighlightType; return this; } | highlight |
266,254 | ProblemBuilder (@NotNull TextRange rangeInElement) { myRange = rangeInElement; return this; } | range |
266,255 | ProblemBuilder (@NotNull LocalQuickFix fix) { myFixes.add(fix); return this; } | fix |
266,256 | ProblemBuilder (@NotNull ModCommandAction action) { myFixes.add(LocalQuickFix.from(action)); return this; } | fix |
266,257 | ProblemBuilder (@Nullable LocalQuickFix fix) { if (fix != null) { myFixes.add(fix); } return this; } | maybeFix |
266,258 | ProblemBuilder (@Nullable ModCommandAction action) { if (action != null) { myFixes.add(LocalQuickFix.from(action)); } return this; } | maybeFix |
266,259 | void () { registerProblem(myPsiElement, myDescriptionTemplate, myHighlightType, myRange, myFixes.toArray(LocalQuickFix.EMPTY_ARRAY)); } | register |
266,260 | void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { applyFix(project, descriptor.getPsiElement().getContainingFile(), null); } | applyFix |
266,261 | boolean (@NotNull Project project, @Nullable Editor editor, PsiFile file) { return true; } | isAvailable |
266,262 | boolean () { return true; } | startInWriteAction |
266,263 | PsiFile () { return myFile; } | getFile |
266,264 | TextRange () { return myPriorityRange; } | getPriorityRange |
266,265 | TextRange () { return myRestrictRange; } | getRestrictRange |
266,266 | HighlightSeverity () { return myMinimumSeverity; } | getMinimumSeverity |
266,267 | void (@NotNull StringBuilder buf, String name) { buf.append("<p class=\"problem-description-group\">") .append(name) .append("</p>"); } | appendHeading |
266,268 | void (@NotNull StringBuilder buf) { buf.append(" "); } | appendAfterHeaderIndention |
266,269 | String () { return myFix.getName(); } | getText |
266,270 | String () { return myFix.getFamilyName(); } | getFamilyName |
266,271 | boolean (@NotNull Project project, Editor editor, PsiFile file) { return myFix.isAvailable(); } | isAvailable |
266,272 | boolean () { return myFix.startInWriteAction(); } | startInWriteAction |
266,273 | HighlightDisplayLevel () { if (level == null) { return HighlightDisplayLevel.WARNING; } HighlightDisplayLevel displayLevel = HighlightDisplayLevel.find(level); if (displayLevel == null) { LOG.error(new PluginException("Can't find highlight display level: " + level + "; registered for: " + implementationClass + "; " + "... | getDefaultLevel |
266,274 | InspectionProfileEntry () { // must create a new instance for each invocation InspectionProfileEntry entry = createInstance(ApplicationManager.getApplication()); entry.myNameProvider = this; return entry; } | instantiateTool |
266,275 | String () { return getShortName(); } | getDefaultShortName |
266,276 | String () { return getDisplayName(); } | getDefaultDisplayName |
266,277 | String () { return getGroupDisplayName(); } | getDefaultGroupDisplayName |
266,278 | String () { return "InspectionEP{" + "shortName='" + shortName + '\'' + ", key='" + key + '\'' + ", bundle='" + bundle + '\'' + ", displayName='" + displayName + '\'' + ", groupKey='" + groupKey + '\'' + ", groupBundle='" + groupBundle + '\'' + ", groupDisplayName='" + groupDisplayName + '\'' + ", groupPath='" + groupP... | toString |
266,279 | int (final @NotNull RefEntity o1, final @NotNull RefEntity o2) { if (o1 == o2) return 0; return o1.getQualifiedName().compareToIgnoreCase(o2.getQualifiedName()); } | compare |
266,280 | RefEntityAlphabeticalComparator () { return RefEntityAlphabeticalComparatorHolder.ourEntity; } | getInstance |
266,281 | ScopeToolState () { return new ScopeToolState(myScopeName, myToolWrapper, myEnabled, myLevel); } | copy |
266,282 | String () { return myScopeName; } | getScopeName |
266,283 | boolean () { return myEnabled; } | isEnabled |
266,284 | HighlightDisplayLevel () { return myLevel; } | getLevel |
266,285 | void (boolean enabled) { myEnabled = enabled; } | setEnabled |
266,286 | void (@NotNull HighlightDisplayLevel level) { myLevel = level; } | setLevel |
266,287 | void (@Nullable String textAttributesKey) { myEditorAttributesKey = textAttributesKey; } | setEditorAttributesExternalName |
266,288 | void () { myAdditionalConfigPanelState = null; } | resetConfigPanel |
266,289 | void (@NotNull InspectionToolWrapper<?, ?> tool) { myToolWrapper = tool; } | setTool |
266,290 | boolean (@NotNull ScopeToolState state2) { if (isEnabled() != state2.isEnabled()) return false; if (getLevel() != state2.getLevel()) return false; if (!Objects.equals(getEditorAttributesExternalName(), state2.getEditorAttributesExternalName())) return false; InspectionToolWrapper<?, ?> toolWrapper = getTool(); Inspecti... | equalTo |
266,291 | boolean (@NotNull InspectionToolWrapper<?, ?> toolWrapper, @NotNull InspectionToolWrapper<?, ?> toolWrapper2) { try { @NonNls String tempRoot = "root"; Element oldToolSettings = new Element(tempRoot); tryWriteSettings(toolWrapper.getTool(), oldToolSettings); Element newToolSettings = new Element(tempRoot); tryWriteSett... | areSettingsEqual |
266,292 | void () { myScope = null; } | scopesChanged |
266,293 | JComponent (boolean currentState) { if (myOptionsPanel != null) { if (myLastState != currentState) { myDeafListeners = true; try { for (Component c : myEnableRequiredComponent) { c.setEnabled(currentState); } myLastState = currentState; } finally { myDeafListeners = false; } } } return myOptionsPanel; } | getPanel |
266,294 | ConfigPanelState (JComponent panel, InspectionToolWrapper<?, ?> toolWrapper) { return panel == null ? EMPTY : new ConfigPanelState(panel, toolWrapper); } | of |
266,295 | void (@NotNull GlobalInspectionContext context) { getTool().initialize(context); } | initialize |
266,296 | T () { T tool = myTool; if (tool == null) { //noinspection unchecked myTool = tool = (T)myEP.instantiateTool(); if (!tool.getShortName().equals(myEP.getShortName())) { LOG.error(new PluginException("Short name not matched for " + tool.getClass() + ": getShortName() = #" + tool.getShortName() + "; ep.shortName = #" + my... | getTool |
266,297 | boolean () { return myTool != null; } | isInitialized |
266,298 | boolean () { return myEP != null && myEP.applyToDialects; } | applyToDialects |
266,299 | boolean (@NotNull Language language) { String myLangId = getLanguage(); if (myLangId == null || myLangId.isBlank() || "any".equals(myLangId)) return true; Set<String> languages = applicableToLanguages; if (languages == null) { applicableToLanguages = languages = ToolLanguageUtil.getAllMatchingLanguages(myLangId, applyT... | isApplicable |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.