def METHOD_NAME(self, output):
    versions = re.findall("javac\ ([\d\._]*)", output)
    version = parse_java_version(versions)
    if not version:
        self.log.warning("Tool version parsing error: %s", output)
    return version