fix: should validate the instance method declaration.