boolean (PsiFile file) { return file instanceof JavaCodeFragment && !(file instanceof PsiExpressionCodeFragment || file instanceof PsiJavaCodeReferenceCodeFragment || file instanceof PsiTypeCodeFragment); }