private static boolean isBranch(@NotNull GitPushNativeResult result) {
    String sourceRef = result.getSourceRef();
    return sourceRef.startsWith("refs/heads/") || GitUtil.isHashString(sourceRef, false);
  }
private static boolean isBranch(@NotNull GitPushNativeResult result)