@Override
      public @Nullable InspectionProfileImpl loadProfileByName(@NotNull String profileName) {
        InspectionProfileManager.getInstance().getProfiles(); //  force init provided profiles
        InspectionProjectProfileManager profileManager = InspectionProjectProfileManager.getInstance(project);
        InspectionProfileImpl inspectionProfile = profileManager.getProfile(profileName, false);
        if (inspectionProfile == null) {  // check if the IDE profile is used for the project
          for (InspectionProfileImpl profile : profileManager.getProfiles()) {
            if (Comparing.strEqual(profile.getName(), profileName)) {
              inspectionProfile = profile;
              break;
            }
          }
        }

        return inspectionProfile;
      }
@Override
      public @Nullable InspectionProfileImpl loadProfileByName(@NotNull String profileName)