Rewrite implementation

- Rename class name `ClassGenerator` to `ClassGeneratorUtils`
- Fix docblock on `addMethodIfNotFinal` method
- Rename test