void () { PsiClass aClass = myJavaFacade.findClass("Test",GlobalSearchScope.allScope(getProject())); assertNotNull(aClass); PsiFileImpl file = (PsiFileImpl)aClass.getContainingFile(); createEditor(file.getVirtualFile()); assertFalse(file.isContentsLoaded()); SmartPointerEx pointer = createPointer(aClass); assertFalse(file.isContentsLoaded()); //noinspection UnusedAssignment aClass = null; gcPointerCache(pointer); assertNotNull(pointer.getElement()); assertFalse(file.isContentsLoaded()); }