ModuleWizardStep (final WizardContext wizardContext) { ProjectJdkStep projectSdkStep = wizardContext.getUserData(PROJECT_JDK_STEP_KEY); if (projectSdkStep != null) { return projectSdkStep; } projectSdkStep = new ProjectJdkStep(wizardContext) { @Override public boolean isStepVisible() { final Sdk newProjectJdk = AbstractProjectWizard.getProjectSdkByDefault(wizardContext); if (newProjectJdk == null) return true; final ProjectBuilder projectBuilder = wizardContext.getProjectBuilder(); return projectBuilder != null && !projectBuilder.isSuitableSdkType(newProjectJdk.getSdkType()); } }; wizardContext.putUserData(PROJECT_JDK_STEP_KEY, projectSdkStep); return projectSdkStep; }