void (final String s, final int length) { CommandProcessor.getInstance().executeCommand(getProject(), () -> ApplicationManager.getApplication().runWriteAction(() -> { BlockSupport blockSupport = BlockSupport.getInstance(getProject()); blockSupport.reparseRange(myDummyFile, myInsertOffset - length, myInsertOffset, s); }), "asd", null); }