docs: private void extractAndWriteExtensionsAsDirectChild(IBase theElement, JsonLikeWriter theEventWriter, BaseRuntimeElementDefinition<?> theElementDef, RuntimeResourceDefinition theResDef,
  																		 IBaseResource theResource, CompositeChildElement theChildElem, CompositeChildElement theParent, EncodeContext theEncodeContext) throws IOException {
  		List<HeldExtension> extensions = new ArrayList<>(0);
  		List<HeldExtension> modifierExtensions = new ArrayList<>(0);
  
  		// Undeclared extensions
  		extractUndeclaredExtensions(theElement, extensions, modifierExtensions, theChildElem, theParent);
  
  		// Declared extensions
  		if (theElementDef != null) {
  			extractDeclaredExtensions(theElement, theElementDef, extensions, modifierExtensions, theChildElem);
  		}
  
  		// Write the extensions
  		writeExtensionsAsDirectChild(theResource, theEventWriter, theResDef, extensions, modifierExtensions, theEncodeContext);
  	}