IDEX-1754 Fix outline feature for java files is unavailable and fix regression on IDEX-1727

Task-Url: https://jira.codenvycorp.com/browse/IDEX-1754