ArgumentType () { final PsiElement lastChild = getLastChild(); if (lastChild instanceof PsiTemplate) { return ArgumentType.TEMPLATE; } else if (!(lastChild instanceof PsiLiteralExpression)) { throw new AssertionError("literal expression expected, got " + lastChild.getClass()); } return ((PsiLiteralExpression)lastChild).isTextBlock() ? ArgumentType.TEXT_BLOCK : ArgumentType.STRING_LITERAL; }