final InspectionProfile profile = profileManager.getInspectionProfile(myElement.getFile());
for (final InspectionProfileEntry profileEntry : profile.getInspectionTools()) {
hasInspections |= processProfileEntry(profile.isToolEnabled(HighlightDisplayKey.find(profileEntry.getShortName())), profileEntry);
}
if (!hasInspections) {
<BUG>runInspection(MockDomInspection.INSTANCE);
</BUG>
}
}
private boolean processProfileEntry(final boolean isEnabled, final InspectionProfileEntry entry) {

final InspectionProfile profile = profileManager.getInspectionProfile(myElement.getFile());
for (final InspectionProfileEntry profileEntry : profile.getInspectionTools()) {
hasInspections |= processProfileEntry(profile.isToolEnabled(HighlightDisplayKey.find(profileEntry.getShortName())), profileEntry);
}
if (!hasInspections) {
runInspection(new MockDomInspection(myRootType));
}
}
private boolean processProfileEntry(final boolean isEnabled, final InspectionProfileEntry entry) {
