The deprecation of the getOperators method is not reflected in docs
The getOperators method is marked as deprecated in the code base, but the official documentation lists this method as the only way to add new operators.
Well it could be argued that this is the least of the problems of the documentation: the fact that it says that getOperators purpose is to add operators is way more concerning.
@ericmorand getOperators in ExtensionInterface was indeed about adding operators to the environment when that extension is registered. This part of the documentation in in the Creating an Extension section
I can argue that it's well named as it gets the operators from the extension.