Enable to enhance inner classes

This PR enables to put annotations on static inner classes to generate enhanced inner classes.
This resolves the issue #248.