Builder (@Nls @NotNull String kind, @Nullable Icon icon, @NotNull String templateName, @Nullable InputValidator extraValidator) { myTemplatesList.add(new TemplatePresentation(kind, icon, templateName)); if (extraValidator != null) { myExtraValidators.put(templateName, extraValidator); } return this; }