private static @NotNull OkCancelDialogBuilder createDependencyDialog(@NlsContexts.DialogTitle @NotNull String title,
                                                                       @NlsContexts.DialogMessage @NotNull String message,
                                                                       @NotNull Project project) {
    return MessageDialogBuilder.okCancel(title, message)
      .icon(Messages.getErrorIcon())
      .doNotAsk(new DoNotAskOption.Adapter() {
        @Override
        public void rememberChoice(boolean isSelected, int exitCode) {
          PropertiesComponent.getInstance(project).setValue(SUGGEST_ANNOTATION_DEPENDENCY, !isSelected, true);
        }
      })
      .yesText(JavaBundle.message("button.add.dependency"));
  }
private static @NotNull OkCancelDialogBuilder createDependencyDialog(@NlsContexts.DialogTitle @NotNull String title,
                                                                       @NlsContexts.DialogMessage @NotNull String message,
                                                                       @NotNull Project project)