Get a better error message when accessing a non-static inner class. The old was was simply method not found, which isn't very helpful.