LoadObject vs StaticLoadObject

In the second code snippet, is T::StaticClass() meant to be UMaterial::StaticClass()?