void () { configure(); final PsiClass psiClass = findClassAtCaret(); final Collection<PsiFunctionalExpression> expressions = FunctionalExpressionSearch.search(psiClass).findAll(); int size = expressions.size(); assertEquals(1, size); final PsiFunctionalExpression next = expressions.iterator().next(); assertNotNull(next); assertEquals("() -> {}", next.getText()); }