class GoodCodeRed { public void foo(CategoryKey categoryKey) { Category current = getCategory(categoryKey); } public > T getCategory(CategoryKey key) { return null; } } interface Category { } class CategoryKey { }