modList

private fun modList(name: String, vararg args: String): Any?

ModList's name, called on what owns it: forge 64.x (26.1+) turned ModList into an all-static utility and dropped the get() singleton, <=1.21 is ModList.get().. Told apart by the method's own modifier rather than by trying the static shape and catching: that could not tell the wrong shape from a real failure in the right one, and on 64.x answered the second with get()'s NoSuchMethodException.