public boolean isProfileDefined() {
   return myInspectionProfile != null && myInspectionProfile.isEditable();
 }
 public void updateCurrentProfile() {
   final String name = myInspectionProfile.getName();
   myInspectionProfile =
       (InspectionProfile) myInspectionProfile.getProfileManager().getProfile(name);
 }
 @Nullable
 public String getCurrentProfileName() {
   return myInspectionProfile == null ? null : myInspectionProfile.getDisplayName();
 }