InspectionProfileImpl () { if (myExternalProfile != null) { return myExternalProfile; } String currentProfile = ((InspectionManagerBase)InspectionManager.getInstance(myProject)).getCurrentProfile(); InspectionProfileImpl profile = ProjectInspectionProfileManager.getInstance(myProject).getProfile(currentProfile, false); return profile == null ? InspectionProfileManager.getInstance().getProfile(currentProfile) : profile; }