code: private void addTypedPattern(MethodSpec.Builder method, String formatType, String pattern) {
      method.beginControlFlow("case $L:", formatType);
      method.addComment("$S", pattern);
      addPattern(method, pattern);
      method.addStatement("break");
      method.endControlFlow();
    }
docs: Adds the pattern builder statements for a typed pattern.