[java] fixes lambda expressions parsing (IDEA-163871)