diff --git a/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/imprt/ImportContext.kt b/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/imprt/ImportContext.kt index 974f2aeab4fa..c915f1e4196c 100644 --- a/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/imprt/ImportContext.kt +++ b/plugins/kotlin/code-insight/fixes-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/fixes/imprt/ImportContext.kt @@ -13,6 +13,16 @@ import org.jetbrains.kotlin.psi.KtExpression internal interface ImportContext { val position: KtElement val positionType: ImportPositionType + + /** + * Indicates whether the receiver of a call is explicitly applied in the position + * represented by this import context. + * + * Note: If [isExplicitReceiver] is `true`, it does not mean that there + * is an explicit PSI expression which can be considered a receiver. + * It just means that the type of explicit receiver cannot be ignored + * when applying auto-import candidates. + */ val isExplicitReceiver: Boolean context(KaSession)