protected static @Nullable PsiDeconstructionPattern getDeconstructionPattern(@NotNull PsiJavaCodeReferenceElement reference) {
    if (reference.getParent() instanceof PsiTypeElement typeElement &&
        typeElement.getParent() instanceof PsiDeconstructionPattern pattern) {
      return pattern;
    }
    return null;
  }
protected static @Nullable PsiDeconstructionPattern getDeconstructionPattern(@NotNull PsiJavaCodeReferenceElement reference)