lambda -> methref: respect laziness (IDEA-133372)

(cherry picked from commit efc2dc0c59a647606386b2e367bb332bca25daa8)
IDEA-126847 support jdk 1.6+ on osx
(cherry picked from commit 004ea34)
IDEA-126847 support jdk 1.6+ on osx
(cherry picked from commit 8cc1e57)
track ApplicationImpl's "write action is pending" state
introduce another time ProgressIndicatorUtils.runProcessWithWriteActionPriority to cancel long calculations upon write action (IDEA-132991), even if write action is already pending [r=Peter.Gromov, Alexey.Kudryavtsev]
Merge remote-tracking branch 'origin/139' into 139
Merge remote-tracking branch 'origin/139' into 139