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 78d2a3589e3..0b05d56a667 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClass.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClass.java @@ -49,7 +49,7 @@ public class JetClass extends JetTypeParameterListOwnerStub imp @NotNull @Override public List getDeclarations() { - JetClassBody body = (JetClassBody) findChildByType(JetNodeTypes.CLASS_BODY); + JetClassBody body = getStubOrPsiChild(JetStubElementTypes.CLASS_BODY); if (body == null) return Collections.emptyList(); return body.getDeclarations();