private static @Nullable String getExpectedName(PsiMember member) {
    if (member instanceof PsiMethod) {
      return ((PsiMethod)member).isConstructor() ? "<init>" : member.getName();
    }
    if (member instanceof PsiField || member instanceof PsiClassInitializer) {
      return member.hasModifierProperty(PsiModifier.STATIC) ? "<clinit>" : "<init>";
    }
    return null;
  }
private static @Nullable String getExpectedName(PsiMember member)