extracted commons for immutable collections
shortened name to Classes.hasMethod