diff --git a/compiler/psi/src/org/jetbrains/kotlin/psi/KtCallableDeclaration.java b/compiler/psi/src/org/jetbrains/kotlin/psi/KtCallableDeclaration.java index 2da5450f324..240b53a9d21 100644 --- a/compiler/psi/src/org/jetbrains/kotlin/psi/KtCallableDeclaration.java +++ b/compiler/psi/src/org/jetbrains/kotlin/psi/KtCallableDeclaration.java @@ -20,6 +20,7 @@ import com.intellij.psi.PsiElement; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import java.util.Collections; import java.util.List; public interface KtCallableDeclaration extends KtNamedDeclaration, KtTypeParameterListOwner { @@ -33,7 +34,9 @@ public interface KtCallableDeclaration extends KtNamedDeclaration, KtTypeParamet KtTypeReference getReceiverTypeReference(); @NotNull - List getContextReceivers(); + default List getContextReceivers() { + return Collections.emptyList(); + } @Nullable KtTypeReference getTypeReference();