void (@NotNull Editor editor) { // Intercept before the following assert; otherwise assertion may fail if (UiInterceptors.tryIntercept(this)) return; assert UIUtil.isShowing(editor.getContentComponent()) : "Editor must be showing on the screen"; // Set the accessible parent so that screen readers don't announce // a window context change -- the tooltip is "logically" hosted // inside the component (e.g. editor) it appears on top of. AccessibleContextUtil.setParent(myComponent, editor.getContentComponent()); show(getBestPositionFor(editor)); }