Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
71,200
boolean () { return false; }
startInWriteAction
71,201
void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiElement element = descriptor.getPsiElement(); if (element instanceof PsiExpression) { VirtualFile virtualFile = element.getContainingFile().getVirtualFile(); Editor editor = FileEditorManager.getInstance(project).openTextEditor(new OpenFileDesc...
applyFix
71,202
String () { return JavaBundle.message("inspection.duplicate.expressions.reuse.variable.fix.family.name"); }
getFamilyName
71,203
String () { return JavaBundle.message("inspection.duplicate.expressions.reuse.variable.fix.name", myVariableName, myExpressionText); }
getName
71,204
void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (element instanceof PsiExpression) { new CommentTracker().replaceAndRestoreComments(element, myVariableName); } }
applyFix
71,205
String () { return JavaBundle.message("inspection.duplicate.expressions.replace.other.occurrences.fix.family.name"); }
getFamilyName
71,206
String () { return JavaBundle.message("inspection.duplicate.expressions.replace.other.occurrences.fix.name", myVariableName, myExpressionText); }
getName
71,207
void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (element instanceof PsiExpression expr) { List<PsiExpression> occurrences = collectReplaceableOccurrences(expr); for (PsiExpression occurrence : occurrences) { new CommentTracker().replaceAndRestoreComments(occurrence, myV...
applyFix
71,208
List<PsiExpression> (@NotNull PsiExpression originalExpr) { PsiVariable variable = findVariableByInitializer(originalExpr); PsiCodeBlock nearestBody = DuplicateExpressionsContext.findNearestBody(originalExpr); if (variable != null && nearestBody != null) { List<PsiExpression> replaceableOccurrences = new ArrayList<>();...
collectReplaceableOccurrences
71,209
void (@NotNull PsiExpression occurrence) { super.visitExpression(occurrence); if (occurrence != originalExpr && hashingStrategy.equals(occurrence, originalExpr) && canReplaceWith(occurrence, variable)) { replaceableOccurrences.add(occurrence); } }
visitExpression
71,210
DuplicateExpressionsContext (@NotNull PsiExpression expression, @NotNull UserDataHolder session) { PsiCodeBlock nearestBody = findNearestBody(expression); if (nearestBody != null) { Map<PsiCodeBlock, DuplicateExpressionsContext> contexts = session.getUserData(CONTEXTS_KEY); if (contexts == null) { session.putUserData(C...
getOrCreateContext
71,211
DuplicateExpressionsContext (@Nullable PsiCodeBlock body, @NotNull UserDataHolder session) { Map<PsiCodeBlock, DuplicateExpressionsContext> contexts = session.getUserData(CONTEXTS_KEY); return contexts != null ? contexts.get(body) : null; }
getContext
71,212
PsiCodeBlock (@NotNull PsiExpression expression) { return ObjectUtils.tryCast(ControlFlowUtil.findCodeFragment(expression), PsiCodeBlock.class); }
findNearestBody
71,213
Match (@NotNull PsiAssignmentExpression assignmentExpression1, @NotNull PsiAssignmentExpression assignmentExpression2) { return EXACT_MISMATCH; }
assignmentExpressionsMatch
71,214
Match (@NotNull PsiUnaryExpression unaryExpression1, @NotNull PsiUnaryExpression unaryExpression2) { if (PsiUtil.isIncrementDecrementOperation(unaryExpression1)) { return EXACT_MISMATCH; } return super.unaryExpressionsMatch(unaryExpression1, unaryExpression2); }
unaryExpressionsMatch
71,215
boolean (PsiExpression e1, PsiExpression e2) { return EQUIVALENCE_CHECKER.expressionsAreEquivalent(e1, e2); }
equals
71,216
int (PsiExpression e) { if (e == null) { return 0; } if (e instanceof PsiParenthesizedExpression) { return hashCode(((PsiParenthesizedExpression)e).getExpression()); } if (e instanceof PsiUnaryExpression unary) { return hashCode(unary.getOperationTokenType(), unary.getOperand()); } if (e instanceof PsiPolyadicExpressio...
hashCode
71,217
int (@NotNull IElementType tokenType, PsiExpression @NotNull ... operands) { int hash = tokenType.hashCode(); for (PsiExpression operand : operands) { hash = hash * 31 + hashCode(operand); } return hash; }
hashCode
71,218
int (@Nullable String name, @Nullable PsiExpression expression, PsiExpression @NotNull ... operands) { int hash = name != null ? name.hashCode() : 0; hash = hash * 31 + hashCode(expression); for (PsiExpression operand : operands) { hash = hash * 31 + hashCode(operand); } return hash; }
hashCode
71,219
int (@Nullable String name, @NotNull String qualifier, PsiExpression @NotNull ... operands) { int hash = name != null ? name.hashCode() : 0; hash = hash * 31 + qualifier.hashCode() * 31; for (PsiExpression operand : operands) { hash = hash * 31 + hashCode(operand); } return hash; }
hashCode
71,220
String (@Nullable PsiTypeElement element) { if (element != null) { PsiJavaCodeReferenceElement reference = element.getInnermostComponentReferenceElement(); if (reference != null) { return reference.getReferenceName(); } } return null; }
getTypeName
71,221
int (@NotNull PsiExpression e) { if (e instanceof PsiLiteralExpression) { return CONSTANT; } if (e instanceof PsiInstanceOfExpression || e instanceof PsiTypeCastExpression) { return IDENTIFIER; } if (e instanceof PsiClassObjectAccessExpression) { return QUALIFIER; } if (e instanceof PsiQualifiedExpression qualifiedExpr...
calculateComplexity
71,222
int (@Nullable PsiExpressionList arguments) { if (arguments == null) return 0; int c = 0; for (PsiExpression argument : arguments.getExpressions()) { c += PARAMETER + getComplexity(argument); } return c; }
calculateArgumentsComplexity
71,223
boolean (@Nullable PsiExpression expression, @NotNull String withText) { expression = PsiUtil.skipParenthesizedExprDown(expression); return expression instanceof PsiLiteral && expression.textMatches(withText); }
isLiteral
71,224
boolean (@Nullable PsiExpression expression) { if (expression instanceof PsiLiteral) { return true; } if (expression instanceof PsiReferenceExpression) { PsiElement qualifier = ((PsiReferenceExpression)expression).getQualifier(); if (qualifier instanceof PsiQualifiedExpression || !(qualifier instanceof PsiExpression)) ...
isDefinitelySimple
71,225
PsiElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly) { return new JavaElementVisitor() { @Override public void visitDocToken(@NotNull PsiDocToken token) { super.visitDocToken(token); if (token.getParent() instanceof PsiSnippetDocTagBody) return; PsiElement nextWhitespace = token.getNextSibling(); PsiE...
buildVisitor
71,226
void (@NotNull PsiDocToken token) { super.visitDocToken(token); if (token.getParent() instanceof PsiSnippetDocTagBody) return; PsiElement nextWhitespace = token.getNextSibling(); PsiElement prevWhitespace = token.getPrevSibling(); if (token.getTokenType() == JavaDocTokenType.DOC_COMMENT_LEADING_ASTERISKS && prevWhitesp...
visitDocToken
71,227
boolean (PsiDocToken token) { PsiElement parent = token.getParent(); if (parent instanceof PsiInlineDocTag) { return isAfterPreTagInner(PsiTreeUtil.getPrevSiblingOfType(parent, PsiDocToken.class)); } return isAfterPreTagInner(token); }
isAfterPreTag
71,228
boolean (PsiDocToken token) { boolean result = false; while (token != null) { String text = token.getText(); int closingPreTagIndex = StringUtil.toLowerCase(text).lastIndexOf("</pre>"); int openingPreTagIndex = StringUtil.toLowerCase(text).lastIndexOf("<pre>"); result = openingPreTagIndex != -1 && (closingPreTagIndex =...
isAfterPreTagInner
71,229
boolean (PsiElement element) { PsiElement prevSibling = element.getPrevSibling(); if (!(prevSibling instanceof PsiDocToken)) return true; if (((PsiDocToken)prevSibling).getTokenType() != JavaDocTokenType.DOC_COMMENT_DATA) return true; String text = prevSibling.getText(); return endsWithHtmlBlockTag(text) || isNullOrBlo...
isAfterParagraphOrBlockTag
71,230
boolean (PsiElement element) { PsiElement nextSibling = skipWhitespacesAndLeadingAsterisksForward(element); if (nextSibling == null) return true; String text = nextSibling.getText(); return isNullOrBlockTag(nextSibling) || startsWithHtmlBlockTag(text) || isNullOrBlockTag(nextSibling.getNextSibling()); }
isBeforeParagraphOrBlockTag
71,231
PsiElement (PsiElement element) { for (PsiElement e = element.getNextSibling(); e != null; e = e.getNextSibling()) { if (!(e instanceof PsiWhiteSpace || e instanceof PsiDocToken docToken && docToken.getTokenType() == JavaDocTokenType.DOC_COMMENT_LEADING_ASTERISKS)) { return e; } } return null; }
skipWhitespacesAndLeadingAsterisksForward
71,232
boolean (String text) { String startTag = HtmlUtil.getStartTag(text); if (startTag == null) return false; return HtmlUtil.isHtmlBlockTag(startTag, false) || "br".equalsIgnoreCase(startTag); }
startsWithHtmlBlockTag
71,233
boolean (String text) { text = text.stripTrailing(); if (text.isEmpty() || text.charAt(text.length() - 1) != '>') return false; String maybeBlockTag = text.substring(text.lastIndexOf('<') + 1, text.length() - 1); String trimmed = StringUtil.trim(maybeBlockTag.strip(), ch -> NOT_WHITESPACE_FILTER.accept(ch) && ch != '/'...
endsWithHtmlBlockTag
71,234
boolean (PsiElement element) { return element == null || (element instanceof PsiDocTag && !(element instanceof PsiInlineDocTag)); }
isNullOrBlockTag
71,235
void (@NotNull ActionContext context, @NotNull PsiElement startElement, @NotNull ModPsiUpdater updater) { Document document = startElement.getContainingFile().getViewProvider().getDocument(); if (document == null) return; TextRange range = startElement.getTextRange(); document.replaceString(range.getStartOffset(), rang...
invoke
71,236
String () { return JavaBundle.message("inspection.javadoc.blank.lines.fix.family.name"); }
getFamilyName
71,237
void (boolean ignoreEmptyDescriptions) { myIgnoreEmptyDescriptions = ignoreEmptyDescriptions; }
setIgnoreEmptyDescriptions
71,238
void (@NotNull String tag) { if (!ADDITIONAL_TAGS.isEmpty()) { ADDITIONAL_TAGS += "," + tag; } else { ADDITIONAL_TAGS = tag; } }
registerAdditionalTag
71,239
OptPane () { return pane( expandableString("ADDITIONAL_TAGS", JavaBundle.message("inspection.javadoc.label.text"), ","), checkbox("IGNORE_THROWS_DUPLICATE", JavaBundle.message("inspection.javadoc.option.ignore.throws")), checkbox("IGNORE_PERIOD_PROBLEM", JavaBundle.message("inspection.javadoc.option.ignore.period")), c...
getOptionsPane
71,240
PsiElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly) { return new JavaElementVisitor() { @Override public void visitJavaFile(@NotNull PsiJavaFile file) { if (PsiPackage.PACKAGE_INFO_FILE.equals(file.getName())) { checkFile(file, holder); } } @Override public void visitModule(@NotNull PsiJavaModule mod...
buildVisitor
71,241
void (@NotNull PsiJavaFile file) { if (PsiPackage.PACKAGE_INFO_FILE.equals(file.getName())) { checkFile(file, holder); } }
visitJavaFile
71,242
void (@NotNull PsiJavaModule module) { checkModule(module, holder); }
visitModule
71,243
void (@NotNull PsiClass aClass) { checkClass(aClass, holder); }
visitClass
71,244
void (@NotNull PsiField field) { checkField(field, holder); }
visitField
71,245
void (@NotNull PsiMethod method) { checkMethod(method, holder); }
visitMethod
71,246
void (PsiJavaFile file, ProblemsHolder holder) { PsiPackage pkg = JavaDirectoryService.getInstance().getPackage(file.getContainingDirectory()); if (pkg == null) return; PsiDocComment docComment = PsiTreeUtil.getChildOfType(file, PsiDocComment.class); if (IGNORE_DEPRECATED_ELEMENTS && isDeprecated(pkg, docComment)) { re...
checkFile
71,247
void (PsiJavaModule module, ProblemsHolder holder) { PsiDocComment docComment = module.getDocComment(); if (IGNORE_DEPRECATED_ELEMENTS && isDeprecated(module, docComment)) { return; } if (docComment != null) { checkBasics(docComment, docComment.getTags(), module, holder); } }
checkModule
71,248
void (PsiClass aClass, ProblemsHolder holder) { if (aClass instanceof PsiAnonymousClass || aClass instanceof PsiSyntheticClass || aClass instanceof PsiTypeParameter) { return; } if (IGNORE_DEPRECATED_ELEMENTS && aClass.isDeprecated()) { return; } PsiDocComment docComment = aClass.getDocComment(); if (docComment != null...
checkClass
71,249
void (PsiField field, ProblemsHolder holder) { if (IGNORE_DEPRECATED_ELEMENTS && isDeprecated(field)) { return; } PsiDocComment docComment = field.getDocComment(); if (docComment != null) { checkBasics(docComment, docComment.getTags(), field, holder); } }
checkField
71,250
void (PsiMethod method, ProblemsHolder holder) { if (method instanceof SyntheticElement) { return; } if (IGNORE_DEPRECATED_ELEMENTS && isDeprecated(method)) { return; } PsiDocComment docComment = method.getDocComment(); if (docComment != null) { if (!MissingJavadocInspection.isInherited(docComment, method)) { PsiDocTag...
checkMethod
71,251
void (PsiDocComment docComment, PsiDocTag[] tags, PsiElement context, ProblemsHolder holder) { checkRequiredTagDescriptions(tags, holder); checkTagValues(tags, context, holder); if (!IGNORE_PERIOD_PROBLEM) { checkForPeriod(docComment, context, holder); } checkInlineTags(docComment.getDescriptionElements(), holder); che...
checkBasics
71,252
void (PsiDocTag @NotNull [] tags, @NotNull PsiMethod psiMethod, @NotNull ProblemsHolder holder) { for (PsiDocTag tag : tags) { if (ContainerUtil .exists(tag.getChildren(), e -> e instanceof PsiInlineDocTag && ((PsiInlineDocTag)e).getName().equals("inheritDoc"))) { continue; } if ("return".equals(tag.getName())) { if (!...
checkEmptyMethodTagsDescription
71,253
void (PsiDocTag @NotNull [] tags, @NotNull ProblemsHolder holder) { for (PsiDocTag tag : tags) { String tagName = tag.getName(); if (ArrayUtil.find(TAGS_TO_CHECK, tagName) >= 0 && isEmptyTag(tag)) { String message = JavaBundle.message("inspection.javadoc.problem.missing.tag.description", StringUtil.capitalize(tagName),...
checkRequiredTagDescriptions
71,254
void (@NotNull PsiDocComment docComment, @NotNull ProblemsHolder holder) { docComment.accept(new PsiRecursiveElementVisitor() { @Override public void visitElement(@NotNull PsiElement element) { super.visitElement(element); ASTNode node = element.getNode(); if (node != null && node.getElementType() == JavaDocTokenType.D...
checkForBadCharacters
71,255
void (@NotNull PsiElement element) { super.visitElement(element); ASTNode node = element.getNode(); if (node != null && node.getElementType() == JavaDocTokenType.DOC_COMMENT_BAD_CHARACTER) { holder.registerProblem(element, JavaBundle.message("inspection.illegal.character")); } }
visitElement
71,256
void (PsiDocTag @NotNull [] tags, @NotNull ProblemsHolder holder) { Set<String> documentedParamNames = null; Set<String> documentedExceptions = null; Set<String> uniqueTags = null; for (PsiDocTag tag : tags) { if ("param".equals(tag.getName())) { PsiDocTagValue value = tag.getValueElement(); if (value instanceof PsiDoc...
checkDuplicateTags
71,257
void (@NotNull PsiDocComment docComment, @Nullable PsiElement context, @NotNull ProblemsHolder holder) { int dotIndex = docComment.getText().indexOf('.'), tagOffset = 0; if (dotIndex >= 0) { // need to find first valid tag for (PsiDocTag tag : docComment.getTags()) { String tagName = tag.getName(); JavadocTagInfo tagIn...
checkForPeriod
71,258
void (PsiElement @NotNull [] elements, @NotNull ProblemsHolder holder) { JavadocManager docManager = JavadocManager.getInstance(holder.getProject()); for (PsiElement element : elements) { if (element instanceof PsiInlineDocTag tag) { String tagName = tag.getName(); if (docManager.getTagInfo(tagName) == null) { checkTag...
checkInlineTags
71,259
void (PsiDocTag @NotNull [] tags, @Nullable PsiElement context, @NotNull ProblemsHolder holder) { JavadocManager docManager = JavadocManager.getInstance(holder.getProject()); for (PsiDocTag tag : tags) { String tagName = tag.getName(); JavadocTagInfo tagInfo = docManager.getTagInfo(tagName); if (tagInfo == null || !tag...
checkTagValues
71,260
boolean (PsiDocTag tag, String tagName, JavadocTagInfo tagInfo, ProblemsHolder holder) { StringTokenizer tokenizer = new StringTokenizer(ADDITIONAL_TAGS, ", "); while (tokenizer.hasMoreTokens()) { if (Comparing.strEqual(tagName, tokenizer.nextToken())) return true; } PsiElement nameElement = tag.getNameElement(); if (n...
checkTagInfo
71,261
void (@NotNull ProblemsHolder holder, PsiInlineDocTag tag) { if (IGNORE_SELF_REFS) { return; } PsiDocTagValue value = tag.getValueElement(); if (value == null) { return; } PsiReference reference = value.getReference(); if (reference == null) { return; } PsiElement target = reference.resolve(); if (target == null) { ret...
checkPointToSelf
71,262
boolean (PsiElement... elements) { int referenceNumber = 0; while (referenceNumber < elements.length && elements[referenceNumber].getText().isBlank()) { referenceNumber++; } if (SEE_TAG_REFS.contains(elements[referenceNumber].getNode().getElementType())) return true; String text = Stream.of(elements).map(e -> e.getText...
isValidSeeRef
71,263
void (@NotNull ProblemsHolder holder, PsiElement element, PsiInlineDocTag tag) { if (element instanceof PsiSnippetDocTag snippet) { PsiElement nameElement = tag.getNameElement(); if (!PsiUtil.getLanguageLevel(snippet).isAtLeast(LanguageLevel.JDK_18)) { if (nameElement != null) { String message = JavaBundle.message("ins...
checkSnippetTag
71,264
void (SnippetMarkup.@NotNull ErrorMarkup errorMarkup) { holder.registerProblem(body, errorMarkup.range(), errorMarkup.message()); }
visitError
71,265
String (@NotNull SnippetMarkup snippet, @Nullable String region) { StringBuilder content = new StringBuilder(); snippet.visitSnippet(region, true, new SnippetMarkup.SnippetVisitor() { @Override public void visitPlainText(SnippetMarkup.@NotNull PlainText plainText, @NotNull List<SnippetMarkup.@NotNull LocationMarkupNode...
renderText
71,266
void (SnippetMarkup.@NotNull PlainText plainText, @NotNull List<SnippetMarkup.@NotNull LocationMarkupNode> activeNodes) { if (plainText.content().isEmpty()) { // Empty content = tag was on a given line. In most of the cases, javadoc tool considers such a line as content content.append("\n"); } else { content.append(pla...
visitPlainText
71,267
void (SnippetMarkup.@NotNull ErrorMarkup errorMarkup) { }
visitError
71,268
boolean (PsiDocTag tag) { return Stream.of(tag.getChildren()) .filter(e -> e instanceof PsiDocToken && ((PsiDocToken)e).getTokenType() == JavaDocTokenType.DOC_COMMENT_DATA || e instanceof PsiDocTagValue || e instanceof PsiInlineDocTag) .allMatch(JavadocDeclarationInspection::isEmpty); }
isEmptyTag
71,269
boolean (PsiDocTag tag) { return Stream.of(tag.getChildren()) .filter(e -> e instanceof PsiDocToken && ((PsiDocToken)e).getTokenType() == JavaDocTokenType.DOC_COMMENT_DATA) .allMatch(JavadocDeclarationInspection::isEmpty); }
isEmptyThrowsTag
71,270
boolean (PsiDocTag tag, PsiDocTagValue valueElement) { PsiElement[] dataElements = tag.getDataElements(); return dataElements.length < 2 || Stream.of(dataElements) .filter(e -> e != valueElement) .allMatch(JavadocDeclarationInspection::isEmpty); }
isEmptyParamTag
71,271
boolean (PsiElement e) { return e.getText().chars().allMatch(c -> c <= ' '); }
isEmpty
71,272
String () { return JavaBundle.message("intention.family.name.synchronize.inline.snippet"); }
getFamilyName
71,273
void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiSnippetDocTag snippetTag = PsiTreeUtil.getParentOfType(element, PsiSnippetDocTag.class); if (snippetTag == null) return; PsiSnippetDocTagValue valueElement = snippetTag.getValueElement(); if (valueElement == null) return; ...
applyFix
71,274
PsiElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly) { return new JavaElementVisitor() { @Override public void visitDocComment(@NotNull PsiDocComment comment) { if (comment.getOwner() == null) return; for (PsiReference reference : ReferenceProvidersRegistry.getReferencesFromProviders(comment)) { if (!...
buildVisitor
71,275
void (@NotNull PsiDocComment comment) { if (comment.getOwner() == null) return; for (PsiReference reference : ReferenceProvidersRegistry.getReferencesFromProviders(comment)) { if (!(reference instanceof WebReference)) continue; String url = ((WebReference)reference).getValue(); if (!url.startsWith(URLUtil.HTTP_PROTOCOL...
visitDocComment
71,276
boolean (String prefix, String suffix) { return START_TAG.matcher(prefix).find() && END_TAG.matcher(suffix).find(); }
isContentOfATag
71,277
boolean (String prefix, String suffix) { return TAG_BEFORE_ATTRIBUTE.matcher(prefix).find() && TAG_AFTER_ATTRIBUTE.matcher(suffix).find(); }
isHtmlTagAttribute
71,278
String () { return JavaBundle.message("quickfix.text.remove.javadoc.0", myTagName); }
getName
71,279
String () { return JavaBundle.message("quickfix.family.remove.javadoc.tag"); }
getFamilyName
71,280
void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiDocTag tag = PsiTreeUtil.getParentOfType(element, PsiDocTag.class); if (tag != null) { tag.delete(); } }
applyFix
71,281
String () { return JavaBundle.message("quickfix.text.replace.url.with.html"); }
getFamilyName
71,282
void (@NotNull ActionContext context, @NotNull PsiDocComment element, @NotNull ModPsiUpdater updater) { String commentText = element.getText(); String prefix = commentText.substring(0, myStartOffsetInDocComment); String urlAndMaybeText = commentText.substring(myStartOffsetInDocComment, myEndOffsetInDocComment); String ...
invoke
71,283
OptPane () { return pane( checkbox("REPORT_INACCESSIBLE", JavaBundle.message("checkbox.html.report.inaccessible.symbols"))); }
getOptionsPane
71,284
boolean () { return true; }
isEnabledByDefault
71,285
String () { return InspectionsBundle.message("group.names.javadoc.issues"); }
getGroupDisplayName
71,286
String () { return SHORT_NAME; }
getShortName
71,287
HighlightDisplayLevel () { return HighlightDisplayLevel.ERROR; }
getDefaultLevel
71,288
PsiElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly) { return new JavaElementVisitor() { @Override public void visitJavaFile(@NotNull PsiJavaFile file) { if (PsiPackage.PACKAGE_INFO_FILE.equals(file.getName())) { checkComment(PsiTreeUtil.getChildOfType(file, PsiDocComment.class), file, holder, isOnThe...
buildVisitor
71,289
void (@NotNull PsiJavaFile file) { if (PsiPackage.PACKAGE_INFO_FILE.equals(file.getName())) { checkComment(PsiTreeUtil.getChildOfType(file, PsiDocComment.class), file, holder, isOnTheFly); } }
visitJavaFile
71,290
void (@NotNull PsiJavaModule module) { checkComment(module.getDocComment(), module, holder, isOnTheFly); }
visitModule
71,291
void (@NotNull PsiClass aClass) { checkComment(aClass.getDocComment(), aClass, holder, isOnTheFly); }
visitClass
71,292
void (@NotNull PsiField field) { checkComment(field.getDocComment(), field, holder, isOnTheFly); }
visitField
71,293
void (@NotNull PsiMethod method) { checkComment(method.getDocComment(), method, holder, isOnTheFly); }
visitMethod
71,294
void (@Nullable PsiDocComment comment, PsiElement context, ProblemsHolder holder, boolean isOnTheFly) { if (comment == null) return; JavadocManager javadocManager = JavadocManager.getInstance(holder.getProject()); comment.accept(new JavaRecursiveElementWalkingVisitor() { @Override public void visitReferenceElement(@Not...
checkComment
71,295
void (@NotNull PsiJavaCodeReferenceElement reference) { visitRefElement(reference, context, isOnTheFly, holder); }
visitReferenceElement
71,296
void (@NotNull PsiSnippetAttributeValue attributeValue) { PsiReference ref = attributeValue.getReference(); if (ref instanceof PsiFileReference fileRef) { PsiElement resolved = fileRef.resolve(); if (resolved == null) { CreateFilePathFix fix = null; String path = fileRef.getCanonicalText(); PsiDirectory parent = commen...
visitSnippetAttributeValue
71,297
void (@NotNull PsiDocTag tag) { super.visitDocTag(tag); visitRefInDocTag(tag, javadocManager, context, holder, isOnTheFly); }
visitDocTag
71,298
void (PsiJavaCodeReferenceElement reference, PsiElement context, boolean isOnTheFly, ProblemsHolder holder) { JavaResolveResult result = reference.advancedResolve(false); String refText = reference.getText(); String message = getResolveErrorMessage(result.getElement(), context, refText); if (message != null && !result....
visitRefElement
71,299
void (PsiDocTag tag, JavadocManager manager, PsiElement context, ProblemsHolder holder, boolean isOnTheFly) { PsiDocTagValue value = tag.getValueElement(); if (value == null) return; String tagName = tag.getName(); JavadocTagInfo info = manager.getTagInfo(tagName); if (info != null && !info.isValidInContext(context)) r...
visitRefInDocTag