IntentionAction (@NotNull String hint) { List<IntentionAction> list = filterAvailableIntentions(hint); if (list.isEmpty()) { fail("\"" + hint + "\" not in [" + StringUtil.join(getAvailableIntentions(), INTENTION_NAME_FUN, ", ") + "]"); } else if (list.size() > 1) { fail("Too many intentions found for \"" + hint + "\": [" + StringUtil.join(list, INTENTION_NAME_FUN, ", ") + "]"); } return assertOneElement(list); }