void (@InspectionMessage String[] messages) { final boolean empty = messages.length == 0; final String tooltipText = TooltipUtils.getTooltipText(messages); if (myEmptyPane != null) { myEmptyPane.getComponent().setBackground(empty ? UIUtil.getTreeBackground() : BaseControl.ERROR_BACKGROUND); myEmptyPane.getComponent().setToolTipText(tooltipText); } final JViewport viewport = ComponentUtil.getViewport(myTable); final Color tableBackground = empty ? UIUtil.getTableBackground() : BaseControl.ERROR_BACKGROUND; viewport.setBackground(tableBackground); viewport.setToolTipText(tooltipText); myTable.setBackground(tableBackground); myTable.setToolTipText(tooltipText); if (tooltipText == null) ToolTipManager.sharedInstance().registerComponent(myTable); }