void () { configureByFile(getBasePath() + "/LowPriority.java"); List<IntentionAction> emptyActions = getAvailableActions(); int i = 0; for(;i < emptyActions.size(); i++) { IntentionAction action = IntentionActionDelegate.unwrap(emptyActions.get(i)); if ("Make 'i' not final".equals(action.getText())) { break; } if (action instanceof EmptyIntentionAction) { fail("Low priority action prior to quick fix"); } } assertTrue(i < emptyActions.size()); for (; i < emptyActions.size(); i++) { IntentionAction action = IntentionActionDelegate.unwrap(emptyActions.get(i)); if (action instanceof EditInspectionToolsSettingsAction) { return; } } fail("Missed inspection setting action"); }