This change limits the methods in which we look for specs to those that have no parameters and have return type of `void`.