Platform: more precise string version comparison
+review CR-OC-818
cleanup
groovy for groovy shell
IDEA-113622 IDEA-101040 Throw assertion error + add a javadoc

3rd-party plugins may access the password safe from a read action,
which would lead to a deadlock if used together with invokeAndWait.

Prefer throwing an exception if it happens;
add a clarifying javadoc both to the top-level API method and the
method which actually calls invokeAndWait.