private synchronized void doSetAccessModifier(@NotNull String am) {
    final int access_id = switch (am) {
      case PsiModifier.PRIVATE -> ACCESS_PRIVATE;
      case PsiModifier.PUBLIC -> ACCESS_PUBLIC;
      case PsiModifier.PACKAGE_LOCAL -> ACCESS_PACKAGE;
      default -> ACCESS_PROTECTED;
    };

    myFlags = myFlags & ~ACCESS_MODIFIER_MASK | access_id;
  }
private synchronized void doSetAccessModifier(@NotNull String am)