PsiElement (final T o, final ConvertContext context) { final PsiElement psiElement = getPsiElement(o); return psiElement == null && o != null ? DomUtil.getValueElement((GenericDomValue)context.getInvocationElement()) : psiElement; }