Bug 7051 - Refactoring of UnknownStatements handling