String (@NotNull VcsFullCommitDetails details) { StringBuilder sb = new StringBuilder(); for (Change change : details.getChanges()) { appendFileChange(sb, change.getType(), callIfNotNull(change.getBeforeRevision(), (ContentRevision cr) -> cr.getFile().getName()), callIfNotNull(change.getAfterRevision(), (ContentRevision cr) -> cr.getFile().getName())); } return sb.toString(); }