cleanup
IDEA-102385 NPE in EncodingProjectManager.getState()
performance
cleanup
OC-6693 (more accurate fix)