code: private MethodSpec buildSkeletonFormatter(List<Skeleton> skeletons) {
      MethodSpec.Builder method = MethodSpec.methodBuilder("formatSkeleton")
          .addAnnotation(Override.class)
          .addModifiers(PUBLIC)
          .addParameter(String.class, "skeleton")
          .addParameter(ZonedDateTime.class, "d")
          .addParameter(StringBuilder.class, "b")
          .returns(boolean.class);
  
      method.beginControlFlow("if (skeleton == null)");
      method.addStatement("return false");
      method.endControlFlow();
      
      method.beginControlFlow("switch (skeleton)");
  
      // Skeleton patterns.
      for (Skeleton skeleton : skeletons) {
        method.beginControlFlow("case $S:", skeleton.skeleton)
          .addComment("Pattern: $S", skeleton.pattern);
  
        addPattern(method, skeleton.pattern);
  
        method.addStatement("break");
        method.endControlFlow();
      }
  
      method.beginControlFlow("default:");
      method.addStatement("return false");
      method.endControlFlow();
  
      method.endControlFlow();
      method.addStatement("return true");
      
      return method.build();
    }
docs: Implements the formatSkeleton method.