boolean (PsiType type) { final String text = type.getCanonicalText(); return PsiTypes.longType().equals(type) || CommonClassNames.JAVA_LANG_LONG.equals(text) || InheritanceUtil.isInheritor(type, CommonClassNames.JAVA_UTIL_DATE) || InheritanceUtil.isInheritor(type, CommonClassNames.JAVA_UTIL_CALENDAR) || (InheritanceUtil.isInheritor(type, "java.time.temporal.TemporalAccessor") && isValidTemporalAccessor(text)); }