GitUtils { static boolean isSshUrl(@Nullable String remote) { return remote != null && SSH_URL_PATTERN.matcher(remote).matches(); }  static void validatePushAccess(@Nonnull Repository repo, @Nonnull String remoteUrl, @Nullable StandardCredentials credential); static void fetch(final Repository repo, final StandardCredentials credential); static void merge(final Repository repo, final String localRef, final String remoteRef); @SuppressFBWarnings(value={"RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"}, justification="JDK11 produces different bytecode - https://github.com/spotbugs/spotbugs/issues/756") static void commit(final Repository repo, final String refName, final String path, final byte[] contents,
            final String name, final String email, final String message, final TimeZone timeZone, final Date when); static void push(String remoteUrl, Repository repo, StandardCredentials credential, String localBranchRef, String remoteBranchRef);  }
@Test public void testSshUrlChecker() { Assert.assertTrue(GitUtils.isSshUrl("ssh: Assert.assertTrue(GitUtils.isSshUrl("ssh: Assert.assertTrue(GitUtils.isSshUrl("ssh: Assert.assertTrue(GitUtils.isSshUrl("ssh: Assert.assertTrue(GitUtils.isSshUrl("ssh: Assert.assertTrue(GitUtils.isSshUrl("user@some-host:some-path")); Assert.assertTrue(GitUtils.isSshUrl("user@some-host:some-path/more")); Assert.assertTrue(!GitUtils.isSshUrl("proto: Assert.assertTrue(!GitUtils.isSshUrl("proto: Assert.assertTrue(!GitUtils.isSshUrl("proto: Assert.assertTrue(!GitUtils.isSshUrl("proto: Assert.assertTrue(!GitUtils.isSshUrl("https: Assert.assertTrue(!GitUtils.isSshUrl("https: Assert.assertTrue(!GitUtils.isSshUrl("https: Assert.assertTrue(!GitUtils.isSshUrl("https: }