Address code review: move checkGrammarAnySignature into checkSignatureDeclaration