docs: public void writeTo(Writer writer) throws IOException {
          switch (type) {
              case CSS:
                  writeCssTo(writer);
                  break;
              case JS:
                  writeJsTo(writer);
                  break;
              default:
                  throw new IllegalStateException(type.toString());
          }
      }