public Set<String> getActiveInspectionProfiles() {
Set<String> result = new HashSet<String>();
if (myType == PROJECT || myType == CUSTOM){
final ProjectProfileManager profileManager = ProjectProfileManager.getProjectProfileManager(myProject, Profile.INSPECTION);
LOG.assertTrue(profileManager != null);
if (profileManager.useProjectLevelProfileSettings()) {
result.addAll(profileManager.getProfilesUsedInProject().values());
result.add(profileManager.getProjectProfile());
} else {
final ApplicationProfileManager applicationProfileManager = ApplicationProfileManager.getProfileManager(Profile.INSPECTION);
LOG.assertTrue(applicationProfileManager != null);