brute force implementation of method usages index