StepSequence ( @NotNull List<ProjectImportProvider> importProviders, @NotNull WizardContext context ) { var stepSequence = new StepSequence(); if (importProviders.size() > 1) { stepSequence.addCommonStep(new ImportChooserStep(importProviders, stepSequence, context)); } for (ProjectImportProvider provider : importProviders) { provider.addSteps(stepSequence, context, provider.getId()); } if (importProviders.size() == 1) { stepSequence.setType(importProviders.get(0).getId()); } return stepSequence; }