private boolean isBetterMatch(@NotNull FileBaseMatch match, @NotNull FileBaseMatch best) {
    return match.score < best.score ||
           match.score == best.score && myBaseDir.equals(match.file);
  }
private boolean isBetterMatch(@NotNull FileBaseMatch match, @NotNull FileBaseMatch best)