code: private void checkIfUpdateIsNeeded(CmsUUID structureId, String path, int resourceType) {
  
          if (CmsResource.isTemporaryFileName(path)) {
              return;
          }
          CmsResourceManager manager = OpenCms.getResourceManager();
  
          if (manager.matchResourceType(TYPE_SETTINGS_CONFIG, resourceType)) {
              // for each formatter configuration, only the combined settings are stored, not
              // the reference to the settings config. So we need to reload everything when a setting configuration
              // changes.
              markForUpdate(RELOAD_MARKER);
              return;
          }
  
          if (manager.matchResourceType(TYPE_FORMATTER_CONFIG, resourceType)
              || manager.matchResourceType(TYPE_MACRO_FORMATTER, resourceType)
              || manager.matchResourceType(TYPE_FLEX_FORMATTER, resourceType)
              || manager.matchResourceType(CmsResourceTypeFunctionConfig.TYPE_NAME, resourceType)) {
              markForUpdate(structureId);
          }
      }
docs: Checks if an update of the formatter is needed and if so, adds its structure id to the update set.<p>
  
  @param structureId the structure id of the formatter
  @param path the path of the formatter
  @param resourceType the resource type