boolean (int step) { if (AbstractWizard.isNewWizard() && mySteps.get(getNextStep(step)) instanceof ProjectSettingsStep && myWizardContext.getProjectBuilder() instanceof TemplateModuleBuilder) { return true; } return getNextStep(step) == step && !isStepWithNotCompletedSubSteps(mySteps.get(step)); }