void (final String value, final Document document, final VirtualFile propertiesFile) { @NonNls String text = myBackSlashPressed.contains(propertiesFile) ? value + "\\" : value; UndoUtil.disableUndoIn(document, () -> document.replaceString(0, document.getTextLength(), text)); }