void () { if (myInlayModel.isInBatchMode()) LOG.error("Document bulk mode shouldn't be started from batch inlay operation"); myView.getPreferredSize(); // make sure size is calculated (in case it will be required while bulk mode is active) myScrollingModel.onBulkDocumentUpdateStarted(); if (myScrollingPositionKeeper != null) myScrollingPositionKeeper.savePosition(); myCaretModel.onBulkDocumentUpdateStarted(); mySoftWrapModel.onBulkDocumentUpdateStarted(); myFoldingModel.onBulkDocumentUpdateStarted(); }