code: protected Predicate<GHHook> serviceWebhookFor(final URL url) {
          return new NullSafePredicate<GHHook>() {
              protected boolean applyNullSafe(@Nonnull GHHook hook) {
                  return hook.getName().equals("jenkins")
                          && hook.getConfig().get("jenkins_hook_url").equals(url.toExternalForm());
              }
          };
      }
docs: Finds "Jenkins (GitHub)" service webhook
  
  @param url jenkins endpoint url
  
  @return true if hook is service hook