another attempt to reimplement IDEA-53663

previous attempts: 05a1415, 7261323
Current change is supposed to make Ctrl-Click not sensitive to 'micro-drags', i.e. mouse drags that don't actually introduce any selection

(cherry picked from commit 09215e7c03180bdc3dd6021d54f094bf5f942f7d)
EA-31437,IDEA-121511 - assert: DocumentFoldingInfo.writeExternal

(cherry picked from commit b90a38f858ca1b1c3439084cdcc28a474a6b1e5b)
disable test in headless environment, as it fails there

(cherry picked from commit 998ca884469d05137fa4dba9b8ede87ff984f6bb)
EA-31437,IDEA-121511 - assert: DocumentFoldingInfo.writeExternal

following review #300

(cherry picked from commit d385ea207269f4c165f31f80d8b4479e2bd4f880)
EA-31437 - assert: DocumentFoldingInfo.writeExternal

(cherry picked from commit e5eb7aa43ae6a13ce94bfe9c361548292a1fdd73)
IDEA-115374 "Print file" truncates the code on Mac

(cherry picked from commit 18bbc9dc44ebfcd4c46e70d1cca632d02c5f71fc)
IDEA-51883 IDEA prints out huge number of pages

(cherry picked from commit d774199cdf711c078f306a15a2b112f0356efb81)
IDEA-124527 Shift-drag after Shift-click starts new selection in editor

(cherry picked from commit 1429f446288271c91736eb5e98ac7199ade5d78f)
IDEA-122732 Javadoc invalid html closing tags

(cherry picked from commit 54da0afe9068691785535f9e73118be8822a58cc)
IDEA-115374 "Print file" truncates the code on Mac

following review #429

(cherry picked from commit c0f36112f39fab881a9b76d585e9c0835a042628)