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