You can write functions… A static function is not particularly different from a free function written in a namespace. You can even use a static import to allow yourself to call it without qualification.
______ProviderBuilderProvider
No idea what this is in reference to. I have a feeling your issue is more with the frameworks you’ve worked with than Java itself.