docs: @Override
      protected Node getNativeTree() {
          IIOMetadataNode root = new IIOMetadataNode(NATIVE_METADATA_FORMAT_NAME);
  
          root.appendChild(createHeaderNode());
  
          if (header.mode == PSD.COLOR_MODE_INDEXED) {
              root.appendChild(createPaletteNode());
          }
  
          if (imageResources != null && !imageResources.isEmpty()) {
              root.appendChild(createImageResourcesNode());
          }
  
          if (layerInfo != null && !layerInfo.isEmpty()) {
              root.appendChild(createLayerInfoNode());
          }
  
          if (globalLayerMask != null && globalLayerMask != PSDGlobalLayerMask.NULL_MASK) {
              root.appendChild(createGlobalLayerMaskNode());
          }
  
          return root;
      }