How do I access the basic methods from a plugin?

I second this.

It is not clear from the linked documentation, on which object these methods are to be called.

I know for example that removeOverlap() is called on the layer. But that is not stated in the documentation.
But then, subtractPaths() and intersectPaths() are mentioned right behind removeOverlap in the documentation, but those are not called on the layer.

Could that please be clarified in the documentation?

Also: How to actually do the boolean operation nowadays? The method described here does not work:

AttributeError: 'GSPathOperator' object has no attribute 'intersectPaths_from_error_'