void (TemplatesGroup group, Collection<? extends ProjectTemplate> templates, boolean preserveSelection) { List<ProjectTemplate> list = new ArrayList<>(templates); ModuleBuilder moduleBuilder = group.getModuleBuilder(); if (moduleBuilder != null && !(moduleBuilder instanceof TemplateModuleBuilder)) { list.add(0, new BuilderBasedTemplate(moduleBuilder)); } myTemplatesList.setTemplates(list, preserveSelection); }