diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClass.java b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClass.java index fbba2a585b9..9bb2b5d3931 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClass.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClass.java @@ -62,7 +62,7 @@ public class JetClass extends JetTypeParameterListOwnerStub imp @Nullable public JetParameterList getPrimaryConstructorParameterList() { - return (JetParameterList) findChildByType(JetNodeTypes.VALUE_PARAMETER_LIST); + return getStubOrPsiChild(JetStubElementTypes.VALUE_PARAMETER_LIST); } @NotNull