public static @NotNull DfConstantType<?> constant(@Nullable Object constant, @NotNull PsiType type) {
    if (constant == null) return NULL;
    DfConstantType<?> primitiveConstant = primitiveConstantImpl(constant);
    if (primitiveConstant != null) return primitiveConstant;
    return referenceConstant(constant, type);
  }
public static @NotNull DfConstantType<?> constant(@Nullable Object constant, @NotNull PsiType type)