I have a case where I need to call the the following line of code in a class in my customized module :
HcmFeatureStateProvider::isFeatureEnabled(HRUserExperienceFeature::instance());
I face the following error : The method 'instance' contained in the non-public class 'HRUserExperienceFeature' is inaccessible.
I notice that the class is defined in Human resources platform module and it is called in a form exists in personnel management module . How can I can I call this method similar to the case I notice in the standard code