boolean (@NotNull PsiImportStaticStatement staticImport) { PsiClass targetClass = staticImport.resolveTargetClass(); if (targetClass != null && isPublicClass(targetClass)) { PsiElement importedElement = staticImport.resolve(); if (importedElement instanceof PsiModifierListOwner) { return ((PsiModifierListOwner)importedElement).hasModifierProperty(PsiModifier.PUBLIC); } } return false; }