void () { myFixture.configureByFiles("Foo.java", "FooImpl.java", "Bar.java", "BarRef.java"); rebuildProject(); final CompilerDirectHierarchyInfo funExpressions = getFunctionalExpressionsForElementUnderCaret(); List<PsiFunctionalExpression> funExprs = funExpressions.getHierarchyChildren().map(PsiFunctionalExpression.class::cast).collect(Collectors.toList()); assertSize(2, funExprs); }