@PsiModifier.ModifierConstant
  private static String getMinimalAccessLevel(@NotNull PsiMember member,
                                              @NotNull List<@NotNull PsiElement> places) {
    String[] levels = {PsiModifier.PRIVATE, PsiModifier.PACKAGE_LOCAL, PsiModifier.PROTECTED};
    PsiClass containingClass = member.getContainingClass();
    for (String level : levels) {
      LightModifierList list = new LightModifierList(member.getManager(), JavaLanguage.INSTANCE, level);
      if (ContainerUtil.all(places, place -> JavaResolveUtil.isAccessible(member, containingClass, list, place, null, null))) {
        return level;
      }
    }
    return PsiModifier.PUBLIC;
  }
@PsiModifier.ModifierConstant
  private static String getMinimalAccessLevel(@NotNull PsiMember member,
                                              @NotNull List<@NotNull PsiElement> places)