Use the actual method indices instead of unknown collections.