@Override
protected StepSequence createSteps(@NotNull WizardContext context, @NotNull ModulesProvider modulesProvider) {
StepSequence sequence = new StepSequence();
ProjectWizardStepFactory factory = ProjectWizardStepFactory.getInstance();
final boolean isNewProject = context.getProject() == null;
if (isNewProject) {
sequence.addCommonStep(new ProjectNameStep(context, this));
}
sequence.addCommonStep(factory.createProjectJdkStep(context, GoSdkType.getInstance(), goModuleBuilder, new Computable<Boolean>() {
@Override
public Boolean compute() {
List<Sdk> sdkList = GoSdkUtil.getSdkOfType(GoSdkType.getInstance());
return !(sdkList != null && sdkList.size() == 1);