Fixed warnings about hidden methods in generated code