LUCENE-6117: make infostream usable again

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_5x@1646242 13f79535-47bb-0310-9956-ffa450edef68
SOLR-6857: Idea modules missing dependencies (merged trunk r1646272)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_5x@1646275 13f79535-47bb-0310-9956-ffa450edef68