void () { removeAll(); AbstractCallback<T> callback = myCustomization.createCallback(); ProjectSpecificAction projectSpecificAction = myCustomization.createProjectSpecificAction(callback); addProjectSpecificAction(projectSpecificAction); List<DirectoryProjectGenerator<?>> generators = myCustomization.getProjectGenerators(); addAll(myCustomization.getActions(generators, callback)); if (!myCustomization.showUserDefinedProjects()) { return; } ProjectTemplate[] templates = new ArchivedTemplatesFactory().createTemplates(CUSTOM_GROUP); List<DirectoryProjectGenerator<?>> projectGenerators; if (templates.length == 0) { projectGenerators = Collections.emptyList(); } else { projectGenerators = new ArrayList<>(templates.length); for (ProjectTemplate template : templates) { projectGenerators.add(new TemplateProjectDirectoryGenerator<>((LocalArchivedTemplate)template)); } } addAll(myCustomization.getActions(projectGenerators, callback)); }