Add generic types to methods declarations