[r=nik] compatibility with previous versions: if nothing is set in dedicated places in compiler configuration, honor -target setting, explicitly specified in additional javac options.
inplace refactorings: check reference at caret according to editor offset