diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetTypeParameterListOwnerStub.java b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetTypeParameterListOwnerStub.java index c74a7c4f7f5..6e29ac57619 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetTypeParameterListOwnerStub.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetTypeParameterListOwnerStub.java @@ -22,6 +22,7 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jetbrains.jet.JetNodeTypes; import org.jetbrains.jet.lang.psi.stubs.PsiJetStubWithFqName; +import org.jetbrains.jet.lang.psi.stubs.elements.JetStubElementTypes; import java.util.Collections; import java.util.List; @@ -37,7 +38,7 @@ abstract class JetTypeParameterListOwnerStub ext @Nullable public JetTypeParameterList getTypeParameterList() { - return (JetTypeParameterList) findChildByType(JetNodeTypes.TYPE_PARAMETER_LIST); + return getStubOrPsiChild(JetStubElementTypes.TYPE_PARAMETER_LIST); } @Nullable