public static boolean isDateType(PsiElementFactory factory, PsiType type) {
        return isTypeOf(factory, type, "java.util.Date");
    }
public static boolean isDateType(PsiElementFactory factory, PsiType type)