boolean (PsiFile element) { return element instanceof PsiJavaFile && !FileTypeUtils.isInServerPageFile(element) && !JavaProjectRootsUtil.isOutsideJavaSourceRoot(element) && !(element instanceof PsiCompiledElement); }