Fixed method modifiers in gen-stubs