VirtualFile (@NotNull VirtualFile dir, @NotNull String name) { try { // requestor must be notnull (for GlobalUndoTest) return WriteAction.computeAndWait(() -> dir.createChildData(dir, name)); } catch (IOException e) { throw new RuntimeException(e); } }