IDEA-104500 Gradle: Allow to reuse common logic for other external systems

Correct reflection-based processing
IDEA-107980 Gradle: Enhance Xmx gradle daemon processing

1. 512 mb is used as a default gradle daemon Xmx;
2. It's possible to override that value via 'gradle.daemon.xmx.mb' system property;
accept raw subtyping when instance method is called on raw type (IDEA-107957)
do not infer from parent when inference from bound result in a raw type (IDEA-107782)