BaseAnalysisActionDialog (Project project, String title, String scopeTitle, boolean rememberScope, AnalysisUIOptions uiOptions, List<? extends ModelScopeItem> items) { return new BaseAnalysisActionDialog(title, scopeTitle, project, items, uiOptions, rememberScope) { @Override protected JComponent getAdditionalActionSettings(@NotNull Project project) { return GenerateJavadocAction.this.getAdditionalActionSettings(project, this); } @Override protected void doOKAction() { ComponentValidator.getInstance(myConfigurable.getOutputDirField()) .ifPresentOrElse(v -> { v.revalidate(); if (v.getValidationInfo() == null) super.doOKAction(); }, () -> { super.doOKAction(); }); } @Override protected String getHelpId() { return getHelpTopic(); } @Nls @Override public @NotNull String getOKButtonText() { return JavaBundle.message("javadoc.generate.ok"); } }; }