Add optional support for inner classes.