boolean (PsiElement patternElement, PsiElement matchedElement) { if (patternElement instanceof PsiComment && (matchedElement instanceof PsiField || matchedElement instanceof PsiClass)) { return false; } return super.shouldAdvanceTheMatchFor(patternElement, matchedElement); }