TestResult (@NotNull String url) { GitCommandResult result = myGit.lsRemote(myProject, new File("."), url); return result.success() ? TestResult.SUCCESS : new TestResult(result.getErrorOutputAsJoinedString()); }