Typo: generateLeafMethod, not generateLeafMethods