private static boolean canHaveStub(PsiFile file) { if (!(file instanceof PsiFileImpl)) return false; VirtualFile vFile = file.getVirtualFile(); IStubFileElementType elementType = ((PsiFileImpl) file).getElementTypeForStubBuilder(); return elementType != null && vFile != null && elementType.shouldBuildStubFor(vFile); }
@Override public void indexStub(@NotNull PsiFileStub stub, @NotNull IndexSink sink) { super.indexStub(stub, sink); }
@Override public void indexStub(PsiFileStub stub, IndexSink sink) { super.indexStub(stub, sink); }