ComponentPopupBuilder (@NotNull JComponent tipPanel) { return JBPopupFactory.getInstance(). createComponentPopupBuilder(tipPanel, null). setShowBorder(UIManager.getBoolean("ToolTip.paintBorder")). setBorderColor(JBUI.CurrentTheme.Tooltip.borderColor()).setShowShadow(true). addUserData(PopupCornerType.RoundedTooltip); }