This function is called before every registration call, if it returns true, the dependency will be registered otherwise, it will be ignored
bool canRegister(Set<String> depEnvironments);