private static boolean isPushAllowed(@NotNull MyRepoModel<Repository, PushSource, PushTarget> model) {
    PushTarget target = model.getTarget();
    if (target == null) return false;
    PushSupport<Repository, PushSource, PushTarget> pushSupport = model.getSupport();
    return pushSupport.canBePushed(model.getRepository(), model.getSource(), target);
  }
private static boolean isPushAllowed(@NotNull MyRepoModel<Repository, PushSource, PushTarget> model)