How to access classes which are dependencies of the current project in a plugin?

I want to access a class via a dependency (Maven) of the current project. Just like accessing the class in the code window of IDEA.
So, is it possible to access such  classes in a plugin? I can access all project data and classes at the moment, but not the foreign dependencies.

Please sign in to leave a comment.