void (Editor editor) { long deadline = System.currentTimeMillis() + 60_000; while (ParameterHintsPresentationManager.getInstance().isAnimationInProgress(editor)) { if (System.currentTimeMillis() > deadline) fail("Too long waiting for animation to finish"); LockSupport.parkNanos(10_000_000); UIUtil.dispatchAllInvocationEvents(); } }