void () { final var emptyText = myTreeTable.getEmptyText(); emptyText.setText(AnalysisBundle.message("inspections.settings.empty.text")); if (!myInspectionsFilter.isEmptyFilter()) { emptyText.appendLine( AnalysisBundle.message("inspections.settings.empty.text.filters.link"), SimpleTextAttributes.LINK_PLAIN_ATTRIBUTES, e -> { myInspectionsFilter.reset(); } ); } else if (myCreateInspectionActions.getChildrenCount() > 0) { emptyText .appendSecondaryText( AnalysisBundle.message("inspections.settings.empty.text.inspection.link"), SimpleTextAttributes.LINK_PLAIN_ATTRIBUTES, e -> JBPopupFactory .getInstance() .createActionGroupPopup( null, myCreateInspectionActions, DataManager.getInstance().getDataContext(myInspectionProfilePanel), null, true) .show(new RelativePoint(myTreeTable, myTreeTable.getEmptyText().getPointBelow())) ); } }