Extracting the new j2k transpiler from the intellij-community project

I would like to extract only the module j2k.new and it’s dependencies from the project I cloned from GitHub - JetBrains/intellij-community: IntelliJ IDEA Community Edition & IntelliJ Platform.

Using intellij’s diagram feature I mapped the dependencies that are used by the new j2k transpiler:

module dependencies

After moving these modules to another project to analyse them further (I am trying to get the transpiler to work from the command line by just feeding it a path to a java file), I ran into a whole bunch of new errors, as I missed dependencies of the dependencies themselves so to say. My question is: is there a handy way to run only a part of a multi-project/to extract all necessary dependencies without ending up still copying the whole project?

Thank you in advance!