Builder (@Nls @NotNull String name, @Nullable Icon icon, @NotNull String templateName, @Nullable InputValidator extraValidator) { myDialog.getKindCombo().addItem(name, icon, templateName); if (extraValidator != null) { myDialog.myExtraValidators.put(templateName, extraValidator); } if (myDialog.getKindCombo().getComboBox().getItemCount() > 1) { myDialog.setTemplateKindComponentsVisible(true); } return this; }