void () { configureByFile(getBasePath() + "/before" + getTestName(false) + "." + "java"); UInjectionHost enclosingStringLiteral = I18nizeAction.getEnclosingStringLiteral(getFile(), getEditor()); UStringConcatenationsFacade concatenation = UStringConcatenationsFacade.createFromTopConcatenation(enclosingStringLiteral); assertNotNull(concatenation); ArrayList<UExpression> args = new ArrayList<>(); Assert.assertEquals("Not a valid {0} identifier part in {2, choice, 0#{1} prefix|1#suffix}", JavaI18nUtil.buildUnescapedFormatString(concatenation, args, getProject())); assertSize(3, args); assertEquals("prefix ? 0 : 1", args.get(2).getSourcePsi().getText()); }