GitFetchResult (@NotNull GitRepository repository) { FetchParams fetchParams = getFetchParams(repository); if (fetchParams.isError()) { return fetchParams.getError(); } GitRemote remote = fetchParams.getRemote(); return fetchRemote(repository, remote, null); }