Hi,
Try with that :
Generally all def class can be accessed with DefDatabase<DefClass>.GetNamed("defNameHere");
Try with that :
Code Select
HediffDef disease = DefDatabase<HediffDef>.GetNamed("SensoryMechanites"); // in parameter here the defName of your desease
//and then :
HediffGiverUtility.TryApply(pawn, disease, ...);
Generally all def class can be accessed with DefDatabase<DefClass>.GetNamed("defNameHere");