boolean (@NotNull PsiType recordType, @Nullable PsiType patternType) { if (recordType instanceof PsiPrimitiveType || patternType instanceof PsiPrimitiveType) { return recordType.equals(patternType); } return patternType != null && TypeConversionUtil.areTypesConvertible(recordType, patternType); }