use ActionManager#tryToExecute to simplify code (IDEA-CR-9987)