void () { if (showHelp && myModel.isOperationsEnabled() && myModel.getRowCount() > 0) { final long count = PropertiesComponent.getInstance().getLong("dir.diff.space.button.info", 0); if (count < 3) { JBPopupFactory.getInstance() .createBalloonBuilder(new JLabel(DiffBundle.message("use.space.button.to.change.operation"))) .setFadeoutTime(5000) .setContentInsets(JBUI.insets(15)) .createBalloon().show(new RelativePoint(myTable, new Point(myTable.getWidth() / 2, 0)), Balloon.Position.above); PropertiesComponent.getInstance().setValue("dir.diff.space.button.info", String.valueOf(count + 1)); } } showHelp = false; }