GitRemote (@NotNull GHRepositoryPath repoPath) { return ContainerUtil.find(myRepository.getRemotes(), remote -> { String url = remote.getFirstUrl(); if (url == null || !GitHostingUrlUtil.match(myAccount.getServer().toURI(), url)) return false; GHRepositoryPath remotePath = GithubUrlUtil.getUserAndRepositoryFromRemoteUrl(url); return repoPath.equals(remotePath); }); }