void () { myUpdateList = getInlayUpdates(myEditorInlays); boolean firstTime = myEditor.getUserData(REPEATED_PASS) == null; boolean isUpdateInBulkMode = myUpdateList.size() > 1000; myEditor.getInlayModel().execute(isUpdateInBulkMode, () -> performHintsUpdate(firstTime, isUpdateInBulkMode)); myEditor.putUserData(REPEATED_PASS, Boolean.TRUE); }