void () { if (myTreeTable == null || isDisposed()) return; InspectionConfigTreeNode.Tool node = myTreeTable.getStrictlySelectedToolNode(); if (node != null) { ScopeToolState state = getSelectedState(); if (state == null) return; Project project = getProject(); NamedScope scope = state.getScope(project); if (scope == null) return; boolean canReset = !myProfile.isProperSetting(state.getTool().getTool().getShortName(), scope, project); myResetLink.setVisible(canReset); revalidate(); repaint(); } }