handle delimiters inside chained call
#WEB-14066 fixed
(cherry picked from commit 267b65a, r=Konstantin Ulitin)
IDEA-131465 (plugin dependencies excluded; cleanup)