better method naming, assertion conditions correction; reliably process events posted to debugger manager thread on its termination
IDEA-116833 External System: clear orphan project libraries
(cherry picked from commit 0bd5325)
IDEA-116833 External System: clear orphan project libraries
(cherry picked from commit 2e9d7fa)