Minor fix in IdeaDependenciesProvider per review.
Rewrite org.gradle.plugins.ide.idea.model.internal package to Java.

One visible change is correction of value type in IdeaModule.singleEntryLibraries map.