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

Ensure modifiable models are disposed
sync several trees in a view provider when there's no document
EJS initial support