IDEA-100968 Gradle: Correctly handle a situation when a project created via 'gradle idea' is linked to a gradle project via JetGradle

Module-local library dependencies are automatically removed and replaced by dependencies to corresponding project-level libraries if necessary
IDEA-99572 Vertical line block match disappear view line in java code

Explicitly add parenthesis to method call as particular groovyc version used at teamcity fails to compile it ('database tests' configuration)