private static boolean isApplicableForRecordComponent(@NotNull PsiType recordComponentType,
                                                        @Nullable PsiType patternType,
                                                        @NotNull LanguageLevel languageLevel) {
    if ((recordComponentType instanceof PsiPrimitiveType || patternType instanceof PsiPrimitiveType) &&
        !JavaFeature.PRIMITIVE_TYPES_IN_PATTERNS.isSufficient(languageLevel)) {
      return recordComponentType.equals(patternType);
    }
    return patternType != null && TypeConversionUtil.areTypesConvertible(recordComponentType, patternType);
  }
private static boolean isApplicableForRecordComponent(@NotNull PsiType recordComponentType,
                                                        @Nullable PsiType patternType,
                                                        @NotNull LanguageLevel languageLevel)