boolean (PsiDocComment docComment, PsiMethod psiMethod) { for (PsiElement descriptionElement : docComment.getDescriptionElements()) { if (descriptionElement instanceof PsiInlineDocTag && "inheritDoc".equals(((PsiInlineDocTag)descriptionElement).getName())) { return true; } } if (docComment.findTagByName("inheritDoc") != null) { JavadocTagInfo tagInfo = JavadocManager.getInstance(psiMethod.getProject()).getTagInfo("inheritDoc"); if (tagInfo != null && tagInfo.isValidInContext(psiMethod)) { return true; } } return false; }