boolean (@NotNull String s) { if (Platform.current().lineSeparator.equals(s)) { if (lastMessageWasEmptyLine) return true; lastMessageWasEmptyLine = true; } else { lastMessageWasEmptyLine = false; } return false; }