@Nullable
  private static AnAction extractAction(Object item) {
    if (item == null) return null;

    if (item instanceof AnAction) return (AnAction)item;

    if (item instanceof GotoActionModel.MatchedValue) {
      item = ((GotoActionModel.MatchedValue)item).value;
    }

    if (item instanceof GotoActionModel.ActionWrapper wrapper) {
      return wrapper.getAction();
    }

    return null;
  }
@Nullable
  private static AnAction extractAction(Object item)