@NotNull
  private static Optional<IgnoreGroupHelperAction> tryCreateFor(@NotNull AnActionEvent e) {
    // TODO: This logic was taken from BasicAction.update(). Probably it'll be more convenient to share these conditions for correctness.
    Project project = e.getProject();
    SvnVcs vcs = project != null ? SvnVcs.getInstance(project) : null;
    VirtualFile[] files = getSelectedFiles(e);
    if (project == null || vcs == null || isEmpty(files)) return Optional.empty();

    IgnoreGroupHelperAction helper = new IgnoreGroupHelperAction();
    if (!helper.checkEnabled(vcs, files)) return Optional.empty();

    helper.checkIgnoreProperty(vcs);
    return Optional.of(helper);
  }
@NotNull
  private static Optional<IgnoreGroupHelperAction> tryCreateFor(@NotNull AnActionEvent e)