void (final String comment) { LAST_COMMIT_MESSAGE = comment; if (comment == null || comment.isBlank()) return; updateRecentMessages(recentMessages -> { recentMessages.remove(comment); addCommitMessage(recentMessages, comment); }); }