class PythonFileAnalyzer implements FileAnalyzer {

  public static FileAnalyzer createAnalyzer(final File _file) {
    try (final InputStream is = new FileInputStream(_file)) {
      return PythonFileAnalyzer.createAnalyzer(is);
    } catch (IOException e) {
      log.error(
          e.getClass().getSimpleName()
              + " when creating analyzer for file ["
              + _file.toPath().toAbsolutePath()
              + "]: "
              + e.getMessage(),
          e);
    }
    return null;
  }

}