static HighlightInfo.Builder checkInstanceOfGenericType(@NotNull LanguageLevel languageLevel, @NotNull PsiInstanceOfExpression expression) {
    PsiTypeElement checkTypeElement = InstanceOfUtils.findCheckTypeElement(expression);
    if (checkTypeElement == null) return null;
    PsiType checkType = checkTypeElement.getType();
    if (JavaFeature.PATTERNS.isSufficient(languageLevel)) {
      PsiPrimaryPattern pattern = expression.getPattern();
      if (pattern != null) {
        return PatternHighlightingModel.getUncheckedPatternConversionError(pattern);
      }
      return isUnsafeCastInInstanceOf(checkTypeElement, checkType, expression.getOperand().getType());
    }
    return isIllegalForInstanceOf(checkType, checkTypeElement);
  }
static HighlightInfo.Builder checkInstanceOfGenericType(@NotNull LanguageLevel languageLevel, @NotNull PsiInstanceOfExpression expression)