<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_instance(self, klasses):
 """ internal method that gets every instance of the klasses out of the internal plugin state. """

        return [x for x in self.plugins if isinstance(x, klasses)]