Fixed wrong method typehint introduced during refactoring