InputFile.Status status(String moduleKeyWithBranch, DefaultInputFile inputFile, String hash) {
    InputFile.Status statusFromScm = findStatusFromScm(inputFile);
    if (statusFromScm != null) {
      return statusFromScm;
    }
    return checkChangedWithProjectRepositories(moduleKeyWithBranch, inputFile, hash);
  }
@Test
  public void detect_status_branches_confirm() {
    Path filePath = Paths.get("module", "src", "Foo.java");
    ScmChangedFiles changedFiles = new ScmChangedFiles(Set.of(ChangedFile.of(filePath)));

    StatusDetection statusDetection = new StatusDetection(projectRepositories, changedFiles);
    assertThat(statusDetection.status("foo", createFile("src/Foo.java"), "XXXXX")).isEqualTo(InputFile.Status.CHANGED);
  }