void () { myAlarm.cancelAllRequests(); if (myProfileFilter != null) { myProfileFilter.dispose(); } if (myInspectionProfilePanel != null) { for (ScopeToolState state : myProfile.getAllTools()) { state.resetConfigPanel(); } } myProfile.cleanup(myProjectProfileManager.getProject()); Disposer.dispose(myDisposable); myDisposable = null; }