adds information to method declaration check