boolean (@NotNull Project project, Editor editor, @NotNull PsiElement element) { if (!isAvailableForElement(element)) return false; PsiClass psiClass = getContainingClass(element); assert psiClass != null; PsiElement leftBrace = psiClass.getLBrace(); if (leftBrace == null) return false; if (element.getTextOffset() >= leftBrace.getTextOffset()) return false; //TextRange declarationRange = HighlightNamesUtil.getClassDeclarationTextRange(psiClass); //if (!declarationRange.contains(element.getTextRange())) return false; return true; }