public static @NotNull List<FilePath> getUnmergedFiles(@NotNull GitRepository repository) throws VcsException {
    GitCommandResult result = Git.getInstance().getUnmergedFiles(repository);
    VirtualFile root = repository.getRoot();

    String output = result.getOutputOrThrow();
    Set<FilePath> unmergedPaths = new HashSet<>();
    for (StringScanner s = new StringScanner(output); s.hasMoreData(); ) {
      if (s.isEol()) {
        s.nextLine();
        continue;
      }
      s.boundedToken('\t');
      String relative = s.line();
      String path = GitUtil.unescapePath(relative);
      FilePath filePath = VcsUtil.getFilePath(root, path, false);
      unmergedPaths.add(filePath);
    }

    return new ArrayList<>(unmergedPaths);
  }
public static @NotNull List<FilePath> getUnmergedFiles(@NotNull GitRepository repository)