void (@NotNull PsiDeconstructionPattern pattern, @NotNull PsiType patternType, @NotNull PsiType itemType, @NotNull Consumer<? super HighlightInfo.Builder> errorSink) { if (!TypeConversionUtil.areTypesConvertible(itemType, patternType)) { errorSink.accept(HighlightUtil.createIncompatibleTypeHighlightInfo(itemType, patternType, pattern.getTextRange(), 0)); return; } HighlightInfo.Builder error = getUncheckedPatternConversionError(pattern); if (error != null) { errorSink.accept(error); } else { createDeconstructionErrors(pattern, errorSink); } }