def METHOD_NAME(majors):
    """
    Provides a list of environment variables that are checked for the given list of major versions.
    :param majors: A list of major versions.
    :return: A list of checked environment variables.
    """
    checked = [f"JAVA{major}_HOME" for major in majors]
    checked.append("JAVA_HOME")
    return checked