Currently inheritsFrom and configHierarchy only work with classes and there is no way to return config property parents or hierarchy.
inheritsFrom (configfile >> "CfgGlasses" >> "G_Sport_Blackyellow" >> "name") => configNull, should be config class where property is defined
configHierarchy (configfile >> "CfgGlasses" >> "G_Sport_Blackyellow" >> "name") =>[], should be full hierarchy