private static boolean areRelated(final ChangeHistory change, final Comment comment) { return StringUtils.equals(ApplicationUsers.getKeyFor(comment.getAuthorApplicationUser()), change.getAuthor()) && isCloseEnough(comment.getCreated().getTime(), change.getTimePerformed().getTime()); }