Adds an explicit return type to a method declaration.