void () { loadToPsiFile(getTestName(false) + ".java"); IntentionAction replaceExplicitTypeWithValIntentionAction = new ReplaceExplicitTypeWithValIntentionAction().asIntention(); IntentionAction replaceExplicitTypeWithVarIntentionAction = new ReplaceExplicitTypeWithVarIntentionAction().asIntention(); boolean foundVal = false; boolean foundVar = false; for (IntentionAction availableIntention : myFixture.getAvailableIntentions()) { if (availableIntention.getFamilyName().equals(replaceExplicitTypeWithValIntentionAction.getFamilyName())) { foundVal = true; } if (availableIntention.getFamilyName().equals(replaceExplicitTypeWithVarIntentionAction.getFamilyName())) { foundVar = true; } if (foundVal && foundVar) { break; } } assertTrue("Both intention actions should be available", foundVal && foundVar); }