void () { if (CharArrayUtil.containsOnlyWhiteSpaces(content.subSequence(start, end)) && options.isStripTrailingSpaces() && !(options.isKeepTrailingSpacesOnCaretLine() && hasCaretIn(start, end))) { document.deleteString(start, end); } else { document.insertString(end, "\n"); } }