workaround for IDEA-109227 (cherry picked from commit 935a6cb)