/*
 * Use of this source code is governed by the MIT license that can be
 * found in the LICENSE file.
 */

package org.rust.lang.core.psi.ext

import com.intellij.codeInsight.intention.preview.IntentionPreviewUtils
import com.intellij.psi.PsiElement

// BACKCOMPAT: 2022.2. Move to `src/main/kotlin/org/rust/lang/core/psi/ext/PsiElement.kt`
val PsiElement.isIntentionPreviewElement: Boolean get() = IntentionPreviewUtils.isPreviewElement(this)
