ProjectBuilder (@Nullable AbstractProjectWizard wizard) { if (wizard == null) return null; if (wizard.getStepCount() == 0) { var builder = wizard.getProjectBuilder(); if (!builder.validate(myProject, myProject)) { builder = null; } return builder; } if (!wizard.showAndGet()) { return null; } return wizard.getBuilder(myProject); }