VirtualFile (final VirtualFile parent, final String name) { final VirtualFile[] files = parent.getChildren(); for (VirtualFile file : files) { if (name.equals(file.getName())) return file; } System.out.println("not found as child"); assertNotNull(LocalFileSystem.getInstance().findFileByIoFile(new File(parent.getPath(), name))); return null; }