void (@NotNull String filename) { myFixture.copyDirectoryToProject(getTestDirectoryPath(), ""); PsiFile currentFile = myFixture.configureFromTempProjectFile(filename); configureInspection(); if (!currentFile.isValid()) { VirtualFile virtualFile = currentFile.getVirtualFile(); currentFile = currentFile.getManager().findFile(virtualFile); } assertNotNull(currentFile); assertTrue(currentFile.isValid()); assertProjectFilesNotParsed(currentFile); assertSdkRootsNotParsed(currentFile); }