diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetModifierList.java b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetModifierList.java index 57c69778cdb..5ce1d3f1b46 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetModifierList.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetModifierList.java @@ -22,8 +22,8 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.stubs.IStubElementType; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import org.jetbrains.jet.JetNodeTypes; import org.jetbrains.jet.lang.psi.stubs.PsiJetModifierListStub; +import org.jetbrains.jet.lang.psi.stubs.elements.JetStubElementTypes; import org.jetbrains.jet.lexer.JetModifierKeywordToken; import org.jetbrains.jet.lexer.JetToken; @@ -48,12 +48,12 @@ public abstract class JetModifierList extends JetElementImplStub getAnnotations() { - return findChildrenByType(JetNodeTypes.ANNOTATION); + return getStubOrPsiChildrenAsList(JetStubElementTypes.ANNOTATION); } @NotNull public List getAnnotationEntries() { - List entries = findChildrenByType(JetNodeTypes.ANNOTATION_ENTRY); + List entries = getStubOrPsiChildrenAsList(JetStubElementTypes.ANNOTATION_ENTRY); List answer = entries.isEmpty() ? null : Lists.newArrayList(entries); for (JetAnnotation annotation : getAnnotations()) { if (answer == null) answer = new ArrayList();