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
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/

ity/pants,tdyas/pants,lahosken/pants,landism/pants,benjyw/pants,kslundberg/pants,Gabriel439/pants,ity/pants,benjyw/pants,dbentley/pants,dbentley/pants,sid-kap/pants,kslundberg/pants,dgomez10/xanon,sameerparekh/pants,dturner-tw/pants,square/pants,cevaris/pants,foursquare/pants,UnrememberMe/pants,jtrobec/pants,cevaris/pants,kslundberg/pants,jessrosenfield/pants,areitz/pants,Gabriel439/pants,ericzundel/pants,foursquare/pants,lahosken/pants,ity/pants,landism/pants,tdyas/pants,slyphon/pants,kwlzn/pants,laurentgo/pants,ity/pants,manasapte/pants,megaserg/pants,pombredanne/pants,manasapte/pants,di0spyr0s/pants,landism/pants,UnrememberMe/pants,TansyArron/pants,dgomez10/xanon,benjyw/pants,jessrosenfield/pants,kslundberg/pants,UnrememberMe/pants,qma/pants,dbentley/pants,peiyuwang/pants,15Dkatz/pants,dgomez10/xanon,gmalmquist/pants,slyphon/pants,sid-kap/pants,jessrosenfield/pants,pantsbuild/pants,landism/pants,ericzundel/pants,pgroudas/pants,fkorotkov/pants,pombredanne/pants,di0spyr0s/pants,ity/pants,kslundberg/pants,lahosken/pants,pantsbuild/pants,15Dkatz/pants,square/pants,qma/pants,foursquare/pants,sid-kap/pants,peiyuwang/pants,wisechengyi/pants,foursquare/pants,lahosken/pants,TansyArron/pants,15Dkatz/pants,UnrememberMe/pants,laurentgo/pants,TansyArron/pants,mateor/pants,lahosken/pants,pgroudas/pants,sameerparekh/pants,jtrobec/pants,megaserg/pants,twitter/pants,dgomez10/xanon,baroquebobcat/pants,megaserg/pants,mateor/pants,dturner-tw/pants,ericzundel/pants,Gabriel439/pants,dturner-tw/pants,pombredanne/pants,tejal29/pants,sid-kap/pants,tdyas/pants,cevaris/pants,scode/pants,tdyas/pants,di0spyr0s/pants,scode/pants,slyphon/pants,ity/pants,dgomez10/xanon,landism/pants,fkorotkov/pants,baroquebobcat/pants,foursquare/pants,di0spyr0s/pants,scode/pants,ericzundel/pants,pgroudas/pants,baroquebobcat/pants,pantsbuild/pants,benjyw/pants,TansyArron/pants,twitter/pants,baroquebobcat/pants,dbentley/pants,megaserg/pants,lahosken/pants,qma/pants,qma/pants,15Dkatz/pants,mateor/pants,sameerparekh/pants,pantsbuild/pants,kwlzn/pants,wisechengyi/pants,dgomez10/xanon,kwlzn/pants,jsirois/pants,kwlzn/pants,twitter/pants,dgomez10/xanon,jtrobec/pants,UnrememberMe/pants,mateor/pants,fkorotkov/pants,manasapte/pants,wisechengyi/pants,wisechengyi/pants,jsirois/pants,tejal29/pants,dbentley/pants,peiyuwang/pants,kslundberg/pants,areitz/pants,cevaris/pants,slyphon/pants,manasapte/pants,jtrobec/pants,tdyas/pants,digwanderlust/pants,tdyas/pants,ericzundel/pants,scode/pants,twitter/pants,sid-kap/pants,kwlzn/pants,jtrobec/pants,foursquare/pants,lahosken/pants,baroquebobcat/pants,jessrosenfield/pants,sameerparekh/pants,di0spyr0s/pants,manasapte/pants,peiyuwang/pants,UnrememberMe/pants,manasapte/pants,kslundberg/pants,15Dkatz/pants,dbentley/pants,digwanderlust/pants,pantsbuild/pants,TansyArron/pants,di0spyr0s/pants,digwanderlust/pants,peiyuwang/pants,twitter/pants,laurentgo/pants,laurentgo/pants,dturner-tw/pants,ity/pants,qma/pants,UnrememberMe/pants,gmalmquist/pants,foursquare/pants,areitz/pants,sameerparekh/pants,TansyArron/pants,fkorotkov/pants,tdyas/pants,digwanderlust/pants,sameerparekh/pants,wisechengyi/pants,lahosken/pants,wisechengyi/pants,pombredanne/pants,fkorotkov/pants,tdyas/pants,dgomez10/xanon,benjyw/pants,areitz/pants,ericzundel/pants,twitter/pants,digwanderlust/pants,sameerparekh/pants,cevaris/pants,kwlzn/pants,jessrosenfield/pants,15Dkatz/pants,megaserg/pants,gmalmquist/pants,Gabriel439/pants,areitz/pants,twitter/pants,tejal29/pants,manasapte/pants,jsirois/pants,gmalmquist/pants,dturner-tw/pants,scode/pants,laurentgo/pants,tejal29/pants,dturner-tw/pants,digwanderlust/pants,slyphon/pants,qma/pants,pombredanne/pants,megaserg/pants,UnrememberMe/pants,jtrobec/pants,fkorotkov/pants,areitz/pants,slyphon/pants,pantsbuild/pants,kwlzn/pants,dgomez10/xanon,mateor/pants,jtrobec/pants,megaserg/pants,twitter/pants,peiyuwang/pants,sid-kap/pants,fkorotkov/pants,landism/pants,pantsbuild/pants,mateor/pants,pgroudas/pants,foursquare/pants,cevaris/pants,peiyuwang/pants,dgomez10/xanon,dbentley/pants,mateor/pants,foursquare/pants,jessrosenfield/pants,baroquebobcat/pants,gmalmquist/pants,mateor/pants,tdyas/pants,square/pants,baroquebobcat/pants,wisechengyi/pants,jessrosenfield/pants,dturner-tw/pants,baroquebobcat/pants,slyphon/pants,scode/pants,15Dkatz/pants,qma/pants,wisechengyi/pants,UnrememberMe/pants,ericzundel/pants,sid-kap/pants,landism/pants,fkorotkov/pants,benjyw/pants,Gabriel439/pants,twitter/pants,Gabriel439/pants,dgomez10/xanon,pgroudas/pants,ericzundel/pants,di0spyr0s/pants,Gabriel439/pants,pombredanne/pants,TansyArron/pants,15Dkatz/pants,benjyw/pants,peiyuwang/pants,laurentgo/pants,areitz/pants,pgroudas/pants,scode/pants,gmalmquist/pants,tejal29/pants,landism/pants,square/pants,baroquebobcat/pants,gmalmquist/pants,pombredanne/pants,cevaris/pants,wisechengyi/pants