void () { clearToolDetails(); myModifiableModel.getAllTools().forEach(ScopeToolState::resetConfigPanel); myModifiableModel = createProfileModel(); initToolDescriptors(); TreeState state = TreeState.createOn(myInspectionsTable.getTree(), myRoot); buildInspectionsModel(); ((DefaultTreeModel)myInspectionsTable.getTree().getModel()).reload(); state.applyTo(myInspectionsTable.getTree(), myRoot); }