void (@NotNull VcsUser author) { List<String> previousCommitAuthors = getState().getPreviousCommitAuthors(); previousCommitAuthors.remove(author.toString()); while (previousCommitAuthors.size() >= PREVIOUS_COMMIT_AUTHORS_LIMIT) { previousCommitAuthors.remove(previousCommitAuthors.size() - 1); } previousCommitAuthors.add(0, author.toString()); }