code: public static <LeftRightT> TypeConfusionInspector<LeftRightT> createOutputtingTo(
        final String name,
        final Function<? super LeftRightT, String> confusionLabeler,
        final Equivalence<LeftRightT> confusionEquivalence,
        final File outputDir) {
      return new TypeConfusionInspector<LeftRightT>(name, confusionLabeler, confusionEquivalence, outputDir);
    }
docs: Creates a new inspector. See class documentation for an explanation of the confusion labeler
  and confusion equivalence.
  
  @param name a name to be used as a prefix for file output
  @param confusionLabeler a function for mapping an observation to its label in the confusion matrix
  @param confusionEquivalence an equivalence between observations that are considered confusable
  @param outputDir directory for writing output
  @param <LeftRightT> the type of both left and right items in the alignment
  @return a new inspector