I want to write an own plugin that finds the dependencies and usages for a Java Class in a project. The problem here is that I don't know where to start.
I tried to find the references of a file through a PsiJavaFile and its fields, but I can't access the Javafile that represents the type of a reference.
My goal of this plugin is to select unit tests that have dependencies to a modified Javafile. I want to find the classes for which I need to run JUnit tests so I don't need to run all tests in the project.
I need to do this because of my bachelor thesis.