void (@NotNull JComponent component, @NotNull Point point, @NotNull Balloon.Position position, @NotNull @NlsContexts.Tooltip String text) { JEditorPane tipComponent = IdeTooltipManager.initPane(text, new HintHint(component, point).setAwtTooltip(true), null); IdeTooltip tooltip = new IdeTooltip(component, point, new Wrapper(tipComponent)).setPreferredPosition(position).setToCenter(false) .setToCenterIfSmall(false); IdeTooltipManager.getInstance().show(tooltip, false); }