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