Add support for stubs in generated PSI classes

Support for stub-based indexing using "elementTypeClass" and the new "stub" attributes.

Changes made to _BnfLexer are not relevant and can be discarded.