public static boolean hasBindingFor(@NotNull PsiElement psi) {
    List<? extends ThreadLocalTypes> stack = ourGuard.currentStack();
    for (int i = stack.size() - 1; i >= 0; i--) {
      ThreadLocalTypes types = stack.get(i);
      if (types.myMap.containsKey(psi)) {
        if (types.myProhibitCaching) {
          ourGuard.prohibitResultCaching(types);
        }
        return true;
      }
    }
    return false;
  }
public static boolean hasBindingFor(@NotNull PsiElement psi)