[^anton] IDEA-107221 Arrow keys in initial code complete popup are based on wrong index
(cherry picked from commit 8b26c8a)
[^anton] more tests for IDEA-107221 (Arrow keys in initial code complete popup are based on wrong index); move the selection up if possible when cyclic scrolling is disabled
(cherry picked from commit eb43883)