Prevent compilation unit parsing if the project is close.
Refactor to use commands instead of actions. Show proper item according to javadocEnablement