Why might getStub() return null?

I have an PsiElement which returns always null when asked for the stub using getStub(). Asking getContainingFile().getStub() also returns null.

What might the reason be for this behaviour?

My IStubElementType#createStub for the PsiElement is being called...

Thank you!

Please sign in to leave a comment.