When a directory contains both a java_library and junit_test def, make sure the IDE understands this is a test pth, not a lib path

In our repo we have projects with BUILD files with 2 targets like:

```
java_libary(name='lib', ...)
junit_test(name='test', ...)
```

Sometimes, the ide_gen code saw the 'java_library' target first and considered that a regular source path, not a test source path, which causes tests to break in the IDE if they depend on libraries only defined in another test source path.  In project.iml, we would see the path defined with is_test="False"

This is just a workaround, as ide_gen still might not always add test folders properly:  If there is a java_library defined in a BUILD file under /src/test/java but no  junit_test, ide_gen mistakenly thinks this is plain source path, not a test source path.

Testing Done:
Re-ran goal idea on our test targets, the folders containing both tests and libraries that were previously 'blue' (regular source paths) are now green as they should be.

Bugs closed: 551

Reviewed at https://rbcommons.com/s/twitter/r/996/