Condition<PsiElement> () { return e -> { for (ConditionType condition : myExpressionConditions) { //noinspection unchecked if (condition.value(e)) { return true; } } return myExpressionConditions.isEmpty(); }; }