docs: protected boolean isMacroOrFlexFormatter(int type, String rootPath) {
  
          boolean result = false;
          try {
              I_CmsResourceType resType = OpenCms.getResourceManager().getResourceType(type);
              result = (CmsFormatterConfigurationCache.TYPE_MACRO_FORMATTER.equals(resType.getTypeName())
                  || CmsFormatterConfigurationCache.TYPE_FLEX_FORMATTER.equals(resType.getTypeName()))
                  && CmsResource.getParentFolder(rootPath).endsWith("/.content/.formatters");
          } catch (Exception e) {
              LOG.debug(e.getMessage(), e);
          }
          return result;
      }