void () { String path = getTestDataDir() + "/pkg/SimpleEnum.class"; VirtualFile vFile = StandardFileSystems.local().findFileByPath(path); assertNotNull(path, vFile); PsiFile psiFile = PsiManager.getInstance(getProject()).findFile(vFile); assertNotNull(path, psiFile); for (int i = 0; i < psiFile.getTextLength(); i++) { PsiElement element = psiFile.findElementAt(i); assertTrue(i + ":" + element, element != null && !(element instanceof ClsElementImpl)); } }