public static @NotNull InspectionProfileImpl load(@NotNull Element element,
                                                    @NotNull String name,
                                                    @NotNull InspectionToolsSupplier registrar,
                                                    @NotNull InspectionProfileManager profileManager) throws InvalidDataException {
    InspectionProfileImpl profile = new InspectionProfileImpl(name, registrar, (BaseInspectionProfileManager)profileManager);
    final Element profileElement = element.getChild("profile");
    if (profileElement != null) {
      element = profileElement;
    }
    profile.readExternal(element);
    return profile;
  }
public static @NotNull InspectionProfileImpl load(@NotNull Element element,
                                                    @NotNull String name,
                                                    @NotNull InspectionToolsSupplier registrar,
                                                    @NotNull InspectionProfileManager profileManager)