void (int startOffset, int endOffset, @NotNull Document document, @NotNull String prefix, @NotNull String suffix) { document.deleteString(endOffset - suffix.length(), endOffset); document.deleteString(startOffset, startOffset + prefix.length()); }