void (@NotNull AnActionEvent e) { final Project project = getEventProject(e); if (project == null) { return; } Object dataFromContext = prepareDataFromContext(e); String defaultPath = null; final VirtualFile virtualFile = e.getData(CommonDataKeys.VIRTUAL_FILE); if (virtualFile != null && virtualFile.isDirectory()) { defaultPath = virtualFile.getPath(); } NewProjectWizard wizard = new NewProjectWizard(project, new DefaultModulesProvider(project), defaultPath); if (wizard.showAndGet()) { createModuleFromWizard(project, dataFromContext, wizard); } }