in src/main/java/jetbrains/buildServer/investigationsAutoAssigner/processing/ModificationAnalyzerFactory.java [60:80]
public User getOnlyCommitter(Set<String> usersToIgnore) throws HeuristicNotApplicableException {
Collection<SUser> committers = myVcsChange.getCommitters();
if (committers.isEmpty()) {
throw new HeuristicNotApplicableException(
"committer \"" + myVcsChange.getUserName() + "\" does not have corresponding TeamCity user");
}
List<User> filteredCommitters = committers.stream()
.filter(user -> !usersToIgnore.contains(user.getUsername()))
.collect(Collectors.toList());
if (filteredCommitters.isEmpty()) {
return null;
}
if (filteredCommitters.size() > 1) {
throw new HeuristicNotApplicableException("there are more than one committer");
}
return filteredCommitters.get(0);
}