memory: avoid ArrayList slack
fewer threads
factor common code
project leak
cleanup
in automake mode trigger asynchronous documents saving after writeAction completion (relates to IDEA-97362 automake: problem is reported for a valid refactoring result)