proper element type to check if stub tree can be built

This commit is contained in:
Konstantin Ulitin
2015-09-30 12:05:02 +03:00
parent 9e934aa980
commit 216075da68
@@ -666,7 +666,7 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
if (derefd != null) return derefd;
if (getTreeElement() != null) return null;
if (!(getContentElementType() instanceof IStubFileElementType)) return null;
if (getElementTypeForStubBuilder() == null) return null;
final VirtualFile vFile = getVirtualFile();
if (!(vFile instanceof VirtualFileWithId)) return null;