void (ActionEvent e) { InspectionToolWrapper<?, ?> wrapper = getToolWrapper(); InspectionProfileImpl cleanupToolProfile = RunInspectionIntention.createProfile(wrapper, managerEx, null); managerEx.createNewGlobalContext() .codeCleanup(getScope(), cleanupToolProfile, "Cleanup by " + wrapper.getDisplayName(), null, false); close(DialogWrapper.OK_EXIT_CODE); }