boolean (@NotNull PsiField first, @NotNull PsiField second) { boolean isSecondFieldStatic = second.hasModifierProperty(PsiModifier.STATIC); return first.hasModifierProperty(PsiModifier.STATIC) == isSecondFieldStatic; }