Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
266,100
void (@NotNull PsiFile file, @NotNull Consumer<? super @NotNull PsiDocCommentBase> sink) { for (DocumentationProvider provider : getAllProviders()) { provider.collectDocComments(file, sink); } }
collectDocComments
266,101
PsiElement (PsiManager psiManager, Object object, PsiElement element) { for (DocumentationProvider provider : getAllProviders()) { PsiElement result = provider.getDocumentationElementForLookupItem(psiManager, object, element); if (result != null) { LOG.debug("getDocumentationElementForLookupItem: ", provider); return r...
getDocumentationElementForLookupItem
266,102
PsiElement (PsiManager psiManager, String link, PsiElement context) { for (DocumentationProvider provider : getAllProviders()) { PsiElement result = provider.getDocumentationElementForLink(psiManager, link, context); if (result != null) { LOG.debug("getDocumentationElementForLink: ", provider); return result; } } retur...
getDocumentationElementForLink
266,103
boolean (PsiElement element, PsiElement originalElement) { for (DocumentationProvider provider : getAllProviders()) { if (hasUrlsFor(provider, element, originalElement)) { LOG.debug("handleExternal(hasUrlsFor): ", provider); return true; } } return false; }
hasDocumentationFor
266,104
boolean (PsiElement element) { for (DocumentationProvider provider : getAllProviders()) { if (provider instanceof ExternalDocumentationProvider && ((ExternalDocumentationProvider)provider).canPromptToConfigureDocumentation(element)) { LOG.debug("canPromptToConfigureDocumentation: ", provider); return true; } } return f...
canPromptToConfigureDocumentation
266,105
void (PsiElement element) { for (DocumentationProvider provider : getAllProviders()) { if (provider instanceof ExternalDocumentationProvider && ((ExternalDocumentationProvider)provider).canPromptToConfigureDocumentation(element)) { ((ExternalDocumentationProvider)provider).promptToConfigureDocumentation(element); LOG.d...
promptToConfigureDocumentation
266,106
boolean (DocumentationProvider provider, PsiElement element, PsiElement originalElement) { final List<String> urls = provider.getUrlFor(element, originalElement); if (urls != null && !urls.isEmpty()) return true; return false; }
hasUrlsFor
266,107
String () { return getProviders().toString(); }
toString
266,108
boolean () { return ClientDocumentationSettings.getCurrentInstance().isHighlightingOfQuickDocSignaturesEnabled(); }
isHighlightingOfQuickDocSignaturesEnabled
266,109
boolean () { return ClientDocumentationSettings.getCurrentInstance().isHighlightingOfCodeBlocksEnabled(); }
isHighlightingOfCodeBlocksEnabled
266,110
boolean () { return ClientDocumentationSettings.getCurrentInstance().isSemanticHighlightingOfLinksEnabled(); }
isSemanticHighlightingOfLinksEnabled
266,111
InlineCodeHighlightingMode () { return ClientDocumentationSettings.getCurrentInstance().getInlineCodeHighlightingMode(); }
getInlineCodeHighlightingMode
266,112
float (boolean isForRenderedDoc) { int result = ApplicationManager.getApplication().isUnitTestMode() ? 100 : isForRenderedDoc ? Registry.intValue("documentation.component.highlighting.saturation.for.rendered.docs") : Registry.intValue("documentation.component.highlighting.saturation.for.hints"); return MathUtil.clamp(r...
getHighlightingSaturation
266,113
int (boolean isForRenderedDoc) { if (isForRenderedDoc) { return SystemInfo.isWin10OrNewer && !ApplicationManager.getApplication().isUnitTestMode() ? 90 : 96; } else { return SystemInfo.isWin10OrNewer && !ApplicationManager.getApplication().isUnitTestMode() ? 90 : 100; } }
getMonospaceFontSizeCorrection
266,114
String () { return AnalysisBundle.message("documentation.settings.inline.code.highlighting.mode.no.highlighting"); }
toString
266,115
String () { return AnalysisBundle.message("documentation.settings.inline.code.highlighting.mode.as.default.code"); }
toString
266,116
String () { return AnalysisBundle.message("documentation.settings.inline.code.highlighting.mode.semantic.highlighting"); }
toString
266,117
ClientDocumentationSettings () { return ApplicationManager.getApplication().getService(ClientDocumentationSettings.class); }
getCurrentInstance
266,118
boolean () { return ApplicationManager.getApplication().isUnitTestMode() || Registry.is("documentation.component.enable.highlighting.of.quick.doc.signatures"); }
isHighlightingOfQuickDocSignaturesEnabled
266,119
boolean () { return ApplicationManager.getApplication().isUnitTestMode() || AdvancedSettings.getBoolean("documentation.components.enable.code.blocks.highlighting"); }
isHighlightingOfCodeBlocksEnabled
266,120
boolean () { return ApplicationManager.getApplication().isUnitTestMode() || AdvancedSettings.getBoolean("documentation.components.enable.highlighting.of.links"); }
isSemanticHighlightingOfLinksEnabled
266,121
void (@NotNull PsiFile file, AnnotationResultType annotationResult, @NotNull AnnotationHolder holder) { }
apply
266,122
String (Element element, String name) { String value = JDOMExternalizerUtil.readField(element, name); if (value == null) throw new IllegalArgumentException("Element '" + element + "' misses attribute '" + name + "'"); return value; }
readField
266,123
int (@NotNull HighlightSeverity highlightSeverity) { return myVal - highlightSeverity.myVal; }
compareTo
266,124
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; HighlightSeverity that = (HighlightSeverity)o; return myVal == that.myVal && myName.equals(that.myName); }
equals
266,125
int () { return 31 * Objects.hashCode(myName) + myVal; }
hashCode
266,126
String () { return myName; }
toString
266,127
String () { return quickFix.toString(); }
toString
266,128
void (@NotNull IntentionAction fix) { registerFix(fix, null); }
registerFix
266,129
void (@NotNull IntentionAction fix, TextRange range) { registerFix(fix,range, null); }
registerFix
266,130
void (@NotNull LocalQuickFix fix, @Nullable TextRange range, @Nullable HighlightDisplayKey key, @NotNull ProblemDescriptor problemDescriptor) { range = notNullize(range); if (myQuickFixes == null) { myQuickFixes = new ArrayList<>(); } myQuickFixes.add(new QuickFixInfo(new LocalQuickFixAsIntentionAdapter(fix, problemDes...
registerFix
266,131
void (@NotNull IntentionAction fix, @Nullable TextRange range, final @Nullable HighlightDisplayKey key) { range = notNullize(range); List<QuickFixInfo> fixes = myQuickFixes; if (fixes == null) { myQuickFixes = fixes = new ArrayList<>(); } fixes.add(new QuickFixInfo(fix, range, key)); }
registerFix
266,132
TextRange (@Nullable TextRange range) { return range == null ? new TextRange(myStartOffset, myEndOffset) : range; }
notNullize
266,133
void (boolean b) { myNeedsUpdateOnTyping = b; }
setNeedsUpdateOnTyping
266,134
boolean () { if (myNeedsUpdateOnTyping == null) { return mySeverity != HighlightSeverity.INFORMATION; } return myNeedsUpdateOnTyping.booleanValue(); }
needsUpdateOnTyping
266,135
int () { return myStartOffset; }
getStartOffset
266,136
int () { return myEndOffset; }
getEndOffset
266,137
HighlightSeverity () { return mySeverity; }
getSeverity
266,138
ProblemHighlightType () { return myHighlightType; }
getHighlightType
266,139
TextAttributesKey () { if (myEnforcedAttributesKey != null) return myEnforcedAttributesKey; return switch (myHighlightType) { case GENERIC_ERROR_OR_WARNING -> { if (mySeverity == HighlightSeverity.ERROR) yield CodeInsightColors.ERRORS_ATTRIBUTES; if (mySeverity == HighlightSeverity.WARNING) yield CodeInsightColors.WARN...
getTextAttributes
266,140
TextAttributes () { return myEnforcedAttributes; }
getEnforcedTextAttributes
266,141
void (final TextAttributes enforcedAttributes) { myEnforcedAttributes = enforcedAttributes; }
setEnforcedTextAttributes
266,142
void (@NlsContexts.Tooltip String tooltip) { myTooltip = tooltip; }
setTooltip
266,143
void (@NotNull ProblemHighlightType highlightType) { myHighlightType = highlightType; }
setHighlightType
266,144
void (final TextAttributesKey enforcedAttributes) { myEnforcedAttributesKey = enforcedAttributes; }
setTextAttributes
266,145
boolean () { return myAfterEndOfLine; }
isAfterEndOfLine
266,146
void (final boolean afterEndOfLine) { myAfterEndOfLine = afterEndOfLine; }
setAfterEndOfLine
266,147
boolean () { return myIsFileLevelAnnotation; }
isFileLevelAnnotation
266,148
void (final boolean isFileLevelAnnotation) { myIsFileLevelAnnotation = isFileLevelAnnotation; }
setFileLevelAnnotation
266,149
void (final @Nullable GutterIconRenderer gutterIconRenderer) { myGutterIconRenderer = gutterIconRenderer; }
setGutterIconRenderer
266,150
void (@Nullable ProblemGroup problemGroup) { myProblemGroup = problemGroup; }
setProblemGroup
266,151
void (PsiReference reference) { unresolvedReference = reference; }
setUnresolvedReference
266,152
PsiReference () { return unresolvedReference; }
getUnresolvedReference
266,153
boolean (@NotNull PsiElement element) { Set<InspectionSuppressor> suppressors = getSuppressors(element); return !suppressors.isEmpty() && isSuppressedFor(element, suppressors); }
isSuppressedFor
266,154
boolean (@NotNull PsiElement element, @NotNull Set<? extends InspectionSuppressor> suppressors) { String toolId = getSuppressId(); for (InspectionSuppressor suppressor : suppressors) { if (isSuppressed(toolId, suppressor, element)) { return true; } } InspectionElementsMerger merger = InspectionElementsMerger.getMerger(...
isSuppressedFor
266,155
boolean (@NotNull PsiElement element, @NotNull Set<? extends InspectionSuppressor> suppressors, @NotNull InspectionElementsMerger merger) { String[] suppressIds = merger.getSuppressIds(); String[] sourceToolIds = suppressIds.length != 0 ? suppressIds : merger.getSourceToolNames(); for (String sourceToolId : sourceToolI...
isSuppressedForMerger
266,156
int (@Nullable SuppressQuickFix object) { if (object == null) { return 0; } int result = object instanceof InjectionAwareSuppressQuickFix ? ((InjectionAwareSuppressQuickFix)object).isShouldBeAppliedToInjectionHost().hashCode() : 0; return 31 * result + object.getName().hashCode(); }
hashCode
266,157
boolean (SuppressQuickFix o1, SuppressQuickFix o2) { if (o1 == o2) { return true; } if (o1 == null || o2 == null) { return false; } if (o1 instanceof InjectionAwareSuppressQuickFix && o2 instanceof InjectionAwareSuppressQuickFix) { if (((InjectionAwareSuppressQuickFix)o1).isShouldBeAppliedToInjectionHost() != ((Injecti...
equals
266,158
void (@NotNull Collection<? super SuppressQuickFix> fixes, @NotNull PsiElement element, @NotNull InspectionSuppressor suppressor, @NotNull ThreeState appliedToInjectionHost, @NotNull String toolId) { SuppressQuickFix[] actions = suppressor.getSuppressActions(element, toolId); for (SuppressQuickFix action : actions) { i...
addAllSuppressActions
266,159
boolean (@NotNull String toolId, @NotNull InspectionSuppressor suppressor, @NotNull PsiElement element) { if (suppressor.isSuppressedFor(element, toolId)) { return true; } String alternativeId = getAlternativeID(); return alternativeId != null && !alternativeId.equals(toolId) && suppressor.isSuppressedFor(element, alte...
isSuppressed
266,160
Set<InspectionSuppressor> (@NotNull PsiElement element) { PsiFile file = element.getContainingFile(); if (file == null) { PsiUtilCore.ensureValid(element); return Collections.emptySet(); } PsiUtilCore.ensureValid(file); FileViewProvider viewProvider = file.getViewProvider(); Language elementLanguage = element.getLangua...
getSuppressors
266,161
void (@NotNull Project project) { }
cleanup
266,162
void (@NotNull GlobalInspectionContext context) { }
initialize
266,163
String (@NotNull String className) { return StringUtil.trimEnd(StringUtil.trimEnd(className, "Inspection"), "InspectionBase"); }
getShortName
266,164
HighlightDisplayLevel () { return HighlightDisplayLevel.WARNING; }
getDefaultLevel
266,165
boolean () { return false; }
isEnabledByDefault
266,166
OptPane () { return OptPane.EMPTY; }
getOptionsPane
266,167
boolean () { return true; }
showDefaultConfigurationOptions
266,168
void (@NotNull Element node) { if (useNewSerializer()) { try { XmlSerializer.deserializeInto(node, this); } catch (SerializationException e) { throw new InvalidDataException(e); } } else { //noinspection deprecation DefaultJDOMExternalizer.readExternal(this, node); } }
readSettings
266,169
void (@NotNull Element node) { if (useNewSerializer()) { XmlSerializer.serializeObjectInto(this, node, getSerializationFilter()); } else { //noinspection deprecation DefaultJDOMExternalizer.writeExternal(this, node); } }
writeSettings
266,170
Set<String> () { Set<String> blackList = new HashSet<>(); URL url = InspectionProfileEntry.class.getResource("inspection-black-list.txt"); if (url == null) { LOG.error("Resource not found"); return blackList; } try (BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream(), StandardCharsets.UTF_...
loadBlackList
266,171
Collection<String> () { Set<String> blackList = ourBlackList; if (blackList == null) { synchronized (BLACK_LIST_LOCK) { blackList = ourBlackList; if (blackList == null) { ourBlackList = blackList = loadBlackList(); } } } return blackList; }
getBlackList
266,172
boolean () { return true; }
isInitialized
266,173
String () { return null; }
getEditorAttributesKey
266,174
void (@NotNull ProblemDescriptionsProcessor processor, @NotNull RefEntity element) { CommonProblemDescriptor[] descriptors = processor.getDescriptions(element); if (descriptors != null) { for (CommonProblemDescriptor descriptor : descriptors) { processor.resolveProblem(descriptor); } } }
resolveAllProblemsInElement
266,175
boolean (@NotNull String id) { return !id.isEmpty() && COMPILED_VALID_ID_PATTERN.matcher(id).matches(); }
isValidID
266,176
String () { return getID(); }
getSuppressId
266,177
boolean () { return false; }
runForWholeFile
266,178
PsiElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly, @NotNull LocalInspectionToolSession session) { return buildVisitor(holder, isOnTheFly); }
buildVisitor
266,179
PsiElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly) { return new PsiFileElementVisitor(holder, isOnTheFly); }
buildVisitor
266,180
void (@NotNull PsiFile file) { addDescriptors(checkFile(file, myHolder.getManager(), myIsOnTheFly)); }
visitFile
266,181
void (ProblemDescriptor @Nullable [] descriptors) { if (descriptors != null) { for (ProblemDescriptor descriptor : descriptors) { if (descriptor != null) { myHolder.registerProblem(descriptor); } else { Class<?> inspectionToolClass = LocalInspectionTool.this.getClass(); LOG.error(PluginException.createByClass( "Array r...
addDescriptors
266,182
void (@NotNull LocalInspectionToolSession session, boolean isOnTheFly) {}
inspectionStarted
266,183
void (@NotNull LocalInspectionToolSession session, @NotNull ProblemsHolder problemsHolder) { }
inspectionFinished
266,184
List<ProblemDescriptor> (@NotNull PsiFile file, @NotNull InspectionManager manager) { return manager.defaultProcessFile(this, file); }
processFile
266,185
String () { return getText(); }
getName
266,186
boolean (@NotNull Project project, @NotNull PsiFile file, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { return true; }
isAvailable
266,187
boolean () { if (myStartElement == null) return false; final PsiElement startElement = myStartElement.getElement(); final PsiElement endElement = myEndElement == null ? startElement : myEndElement.getElement(); PsiFile file = myStartElement.getContainingFile(); Project project = myStartElement.getProject(); return star...
isAvailable
266,188
PsiElement () { return myStartElement == null ? null : myStartElement.getElement(); }
getStartElement
266,189
PsiElement () { return myEndElement == null ? null : myEndElement.getElement(); }
getEndElement
266,190
void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { applyFix(); }
applyFix
266,191
void () { if (myStartElement == null) return; final PsiElement startElement = myStartElement.getElement(); final PsiElement endElement = myEndElement == null ? startElement : myEndElement.getElement(); if (startElement == null || endElement == null) return; PsiFile file = startElement.getContainingFile(); if (file == n...
applyFix
266,192
void (@NotNull InspectionManager manager, @NotNull GlobalInspectionContext globalContext, @NotNull ProblemDescriptionsProcessor problemDescriptionsProcessor) {}
inspectionStarted
266,193
void (@NotNull InspectionManager manager, @NotNull GlobalInspectionContext globalContext, @NotNull ProblemDescriptionsProcessor problemDescriptionsProcessor) {}
inspectionFinished
266,194
void (@NotNull AnalysisScope scope, @NotNull InspectionManager manager, @NotNull GlobalInspectionContext globalContext, @NotNull ProblemDescriptionsProcessor problemDescriptionsProcessor) { throw new IncorrectOperationException("You must override checkFile() instead"); }
runInspection
266,195
boolean () { return false; }
isReadActionNeeded
266,196
boolean () { return false; }
isGraphNeeded
266,197
String () { return myFix.getName(); }
getText
266,198
String () { return myFix.getFamilyName(); }
getFamilyName
266,199
boolean (@NotNull Project project, Editor editor, PsiFile file) { return myProblemDescriptor.getStartElement() != null; }
isAvailable