String (@NotNull Document document, @NotNull String commentSuffix, @NotNull String commentPrefix, @NotNull String linePrefix, @NotNull TextRange commentRange) { final int nFirstCommentLine = document.getLineNumber(commentRange.getStartOffset()); for (int i = 0; i <= 1; i++) { final String line = getCommentLine(i, nFirstCommentLine, document, commentSuffix, commentPrefix, linePrefix, commentRange); if (line == null) return ""; if (line.chars().anyMatch(c -> !StringUtil.isWhiteSpace((char)c))) return line; } return ""; }