Get plugin’s main class instance

Hi! Is it possible to get the instance of the main plugin’s class from outside of it (within the same code)?

class MyPlugin(GeneralPlugin):
   def method(self):
      print("hello")

class AnotherClass():
   def anotherMethod(self):
      myPluginInstance.method() # how to get myPluginInstance?