private static String[] addJavaFileMemberModifiers(@Nullable PsiModifierList list, @NotNull PsiElement position) {
    if (PsiUtil.isAvailable(JavaFeature.IMPLICIT_CLASSES, position) &&
        (position.getContainingFile() instanceof PsiJavaFile javaFile && javaFile.getPackageStatement() == null)) {
      return addMemberModifiers(list, false, position);
    }
    return addKeywords(list, FILE_MEMBER_MODIFIERS, position);
  }
private static String[] addJavaFileMemberModifiers(@Nullable PsiModifierList list, @NotNull PsiElement position)