docs: @Override
      public boolean setPortletPreferences(List<IPortletPreference> portletPreferences) {
          if (portletPreferences == null) {
              final boolean modified = !this.portletPreferences.isEmpty();
              this.portletPreferences.clear();
              return modified;
          }
  
          final boolean modified = !this.portletPreferences.equals(portletPreferences);
          this.portletPreferences = portletPreferences;
          return modified;
      }