void () { doTest(); List<IntentionAction> intentions = myFixture.getAvailableIntentions(); assertEquals(1, intentions.stream().filter(i -> i.getText().equals("Remove 'if' statement")).count()); assertEquals(0, intentions.stream().filter(i -> i.getText().equals("Simplify 'expirationDay != other.expirationDay' to false")).count()); }