Alternative to access_show_hidden_entities

Hi, i need to access entities that are disabled (enabled = false), and the solution i found is to use the access_show_hidden_entities() function. However the documentation says i shouldn't use it as its going to be replaced.

Is there an actual aternative to get disabled entities?

Thanks!