IntentionAction () { IntentionAction resultAction = null; final String testName = getTestName(false); final String resultActionName = getActionName(); for (IntentionAction action : myFixture.getAvailableIntentions(BEFORE + testName + ".java")) { if (Comparing.strEqual(action.getText(), resultActionName)) { resultAction = action; break; } } Assert.assertNotNull(resultAction, "action isn't found"); return resultAction; }