boolean (PsiJavaCodeReferenceElement ref, @NotNull PsiElement target) { PsiElement qualifier = ref.getQualifier(); return target instanceof PsiModifierListOwner && ((PsiModifierListOwner)target).hasModifierProperty(PsiModifier.STATIC) && qualifier instanceof PsiJavaCodeReferenceElement && !(((PsiJavaCodeReferenceElement)qualifier).resolve() instanceof PsiClass); }