AbstractProjectWizard (@Nullable Project project, @Nullable File directory) { ModulesProvider modulesProvider = project == null ? ModulesProvider.EMPTY_MODULES_PROVIDER : new DefaultModulesProvider(project); return new NewProjectWizard(project, modulesProvider, ObjectUtils.doIfNotNull(directory, it -> it.getPath())); }