void () { final LightweightHint hint = myPanel.getHint(); if (hint != null) { myPanel.getHintContainerShowPoint().doWhenDone((Consumer<RelativePoint>)relativePoint -> { Dimension size = myPanel.getPreferredSize(); if (ExperimentalUI.isNewUI()) { JBInsets.addTo(size, JBUI.CurrentTheme.StatusBar.Breadcrumbs.floatingBorderInsets()); } hint.setSize(size); hint.setLocation(relativePoint); if (after != null) { after.run(); } }); } else { if (after != null) { after.run(); } } }