private static void showNotificationToAccept(@NotNull Project project, MultiMap<LanguageLevel, Module> unacceptedLevels, LanguageLevel level) {
    getAcceptedLanguageNotificationGroup().createNotification(
        JavaBundle.message("java.preview.features.alert.title"),
        JavaBundle.message("java.preview.features.legal.notice", level.getPresentableText(), "<br/><br/><a href='accept'>" +
                                                                                             JavaBundle.message(
                                                                                               "java.preview.features.accept.notification.link") +
                                                                                             "</a>"),
        NotificationType.WARNING)
      .setListener((notification, event) -> {
        if (event.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
          if (event.getDescription().equals("accept")) {
            acceptAndRestore(project, unacceptedLevels.get(level), level);
          }
          notification.expire();
        }
      })
      .notify(project);
  }
private static void showNotificationToAccept(@NotNull Project project, MultiMap<LanguageLevel, Module> unacceptedLevels, LanguageLevel level)