void () { CommandProcessor.getInstance().runUndoTransparentAction( () -> WriteCommandAction.runWriteCommandAction(null, () -> { ((DocumentImpl)getFirstEditor().getDocument()).stripTrailingSpaces(getProject()); })); }