memory
instantiate UnusedDeclarationInspection properly in tests; got rid of setters
variations of lastIndexOf
test fix
dispose properly
cleanup
JBTable: remove useless code

JTable#columnMarginChanged stops editing unconditionally, so the listener
added in removed doesn't do anything.
fix TableUtil#scrollSelectionToVisible not scrolling outside of visible area
extract method nullable check: ensure correct exist statement chosen (IDEA-132706)
AIOOBE
ensure options are calculated against correct element (IDEA-132771)
Add auxiliary empty modules in test data to keep empty directories under VCS

Also remove excess trailing 'Test' part from test names.
Gradle: upgrade Tooling API from 2.1 up to 2.2 + generated source folders importing added