public static boolean isFunctionalType(PsiType type) {
    return isFunctionalClass(PsiUtil.resolveClassInClassTypeOnly(normalizeFunctionalType(type)));
  }
public static boolean isFunctionalType(PsiType type)