title: How to Export class file and all dependency file to other location
body: <p>Im in situation where i need to copy class file to other location but this class file depends on another class files and can go up to 100+ files, which is impractical doing it manully.</p>
  <p>for eaxample, lets say i have following classes</p>
  <pre><code>class A{}
  </code></pre>
  <p>class <strong>B</strong> depnds on <strong>A</strong></p>
  <pre><code>import A;
  class B{}
  </code></pre>
  <p>class <strong>C</strong> depnds on <strong>B</strong> (which depends on <strong>A</strong>)</p>
  <pre><code>import B;
  class C{}
  </code></pre>
  <p>Say i need to copy class <strong>C</strong> file (say <strong>C.java</strong>), but in this case <strong>B.java</strong> and <strong>A.java</strong> should be copied as well.</p>
  <p>I checked intellj which was able to detect these <strong>production</strong> classes dependency (ie classes i create not external liberaries), but got stuck moving them.</p>
  <p>Question is, how can i automate this?</p>