void (PsiFile file) { assertInstanceOf(file, PyFileImpl.class); assertNull("Operations should have been performed on stubs but caused file to be parsed: " + file.getVirtualFile().getPath(), ((PyFileImpl)file).getTreeElement()); }