void (EditorEx editor, Random random) { editor.getInlayModel().execute(true, () -> { int count = 1 + random.nextInt(MAX_INLAY_OPERATIONS_IN_BATCH); for (int i = 0; i < count; i++) { doRandomAction(editor, random, INLAY_PRIMITIVE_ACTIONS); } }); }