Renamed getAllDeclaredFields(Class, FieldClosure) to computeDeclaredFields() and made it return a generic type.