boolean (@NotNull ModuleBuilder builder) { String card = builder.getBuilderId(); ModuleWizardStep step = myCustomSteps.get(card); if (step == null) { step = builder.getCustomOptionsStep(myContext, this); if (isNewWizard() && builder instanceof TemplateModuleBuilder) { step = new ProjectSettingsStep(myContext); myContext.setProjectBuilder(builder); NewProjectWizardCollector.logCustomTemplateSelected(myContext); } if (step == null) return false; myContext.setProjectBuilder(builder); step.updateStep(); JComponent component = step.getComponent(); if (isNewWizard() && !(builder instanceof PromoModuleBuilder)) { component = new JBScrollPane(component); component.setBorder(JBUI.Borders.empty()); } myOptionsPanel.add(component, card); myCustomSteps.put(card, step); } try { step._init(); } catch (Throwable e) { LOG.error(e); } myContext.setScreen(1); showCard(card); return true; }