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
Merge pull request #380 from sunix/IDEX-1754

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