title: Intellij - Find path to src directory
body: <p>I am creating an IntelliJ plugin and I am using JavaParser for one of my features. My plugin will allow users to click a gutter icon next to a method and automatically navigate to the tests associated with that method.</p>
  
  <p>To achieve this, temporerily I have used the line:</p>
  
  <p><code>typeSolver.add(new JavaParserTypeSolver(new File("/home/webby/IdeaProjects/project00/src/")));</code></p>
  
  <p>My problem is that I need to pass the source folder of the given module into this type solver. Is there any way I can find the source folder programmatically? Perhaps from an actionEvent? </p>
  
  <p>I have tried things along the lines of the following:</p>
  
  <p><code>actionEvent.getData(PlatformDataKeys.PROJECT).getBasePath()</code></p>
  
  <p>This gives me: '/home/webby/IdeaProjects/project00/' but I'm struggling to see how I can get the source folder? I feel there should be a fairly straight forward way of doing this using IntelliJ's SDK but I have not found anything in the documentation or anywhere else online.</p>
  
  <p>Any and all solutions welcome!</p>
  
  <p>Many Thanks,
  James</p>