public static boolean isHashString(@NotNull @NonNls String revision, boolean fullHashOnly) {
    if (fullHashOnly) {
      return HASH_STRING_PATTERN.matcher(revision).matches();
    }
    else {
      return VcsLogUtil.HASH_REGEX.matcher(revision).matches();
    }
  }
public static boolean isHashString(@NotNull @NonNls String revision, boolean fullHashOnly)