code: public Configuration withDifferenceListener(DifferenceListener differenceListener) {
          return new Configuration(tolerance, options, ignorePlaceholder, matchers, pathsToBeIgnored, differenceListener);
      }
docs: Sets difference listener