void (@NotNull AnActionEvent e, @Nullable Module module, @NotNull RootsSelection selection) { boolean enabled = module != null && (!selection.mySelectedRoots.isEmpty() || !selection.mySelectedDirectories.isEmpty()) && selection.mySelectedExcludeRoots.isEmpty() && isEnabled(selection, module); e.getPresentation().setEnabledAndVisible(enabled); }