boolean (PsiElement element) { final PsiFile file = element.getContainingFile(); if (!(file instanceof PsiJavaFile javaFile)) { return false; } final PsiImportList importList = javaFile.getImportList(); return importList != null && importList.getImportStaticStatements().length > 0; }