GROOVY-6260: improve error message to give a hint about static access