void (@NotNull AnActionEvent e) { Project project = e.getData(CommonDataKeys.PROJECT); if (project == null) { project = ProjectManager.getInstance().getDefaultProject(); } FileChooserDescriptor fcd = FileChooserDescriptorFactory.createSingleFolderDescriptor(); fcd.setShowFileSystemRoots(true); fcd.setTitle(GitBundle.message("init.destination.directory.title")); fcd.setDescription(GitBundle.message("init.destination.directory.description")); fcd.setHideIgnored(false); VirtualFile baseDir = e.getData(CommonDataKeys.VIRTUAL_FILE); if (baseDir == null || !baseDir.isDirectory()) { baseDir = project.getBaseDir(); } doInit(project, fcd, baseDir); }