PsiClass (Editor editor, PsiFile file) { final PsiClass targetClass = super.getTargetClass(editor, file); if (targetClass == null || targetClass instanceof PsiAnonymousClass || targetClass.isEnum()) return null; return targetClass; }