VirtualFile (final VirtualFile parent, final String name, final String content, boolean create) { final VirtualFile result = parent.findChild(name); if (result != null || !create) return result; return content == null ? createDirInCommand(parent, name) : createFileInCommand(parent, name, content); }