boolean (Object classElement, PsiElement place) { if(classElement instanceof PsiClass){ Project project = ((PsiClass)classElement).getProject(); final PsiClass[] inners = ((PsiClass)classElement).getInnerClasses(); for (final PsiClass inner : inners) { if (inner.hasModifierProperty(PsiModifier.STATIC) && PsiUtil.isAccessible(project, inner, place, null) && myFilter.isAcceptable(inner, place)) { return true; } } } return false; }