boolean (Editor editor, PsiFile file) { if (!(file instanceof PsiJavaFile)) return false; return OverrideImplementUtil.getContextClass(editor.getProject(), editor, file, false) != null && isApplicable(file, editor); }