Template (XmlTag tagProperty, String prevTarget, String option) { XmlTag tagTarget = tagProperty.findFirstSubTag(MAVEN_COMPILER_TARGET); PsiElement psiTarget = getXmlTagPsiValue(tagTarget); if (psiTarget == null) return null; TemplateBuilderImpl builder = new TemplateBuilderImpl(tagProperty); builder.replaceElement(psiTarget, "variableTarget", getExpression(prevTarget, option), true); return builder.buildInlineTemplate(); }