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);
result.add(applicationProfileManager.getRootProfile().getName());
}
} else if (myType == MODULE){
processModule(result, myModule);
} else if (myType == MODULES){
for (Module module : myModules) {