void (@NotNull Editor editor, @NotNull Inlay inlay) { ThreadingAssertions.assertEventDispatchThread(); // to avoid race conditions in "new AnimationStep" AnimationStep step = editor.getUserData(ANIMATION_STEP); if (step == null) { editor.putUserData(ANIMATION_STEP, step = new AnimationStep(editor)); } step.inlays.add(inlay); scheduleAnimationStep(step); }