void (@NotNull VirtualFile newParent) { ApplicationManager.getApplication().assertWriteAccessAllowed(); VirtualDirectoryImpl parent = getParent(); parent.removeChild(this); VirtualDirectoryImpl directory = (VirtualDirectoryImpl)newParent; getSegment().changeParent(myId, directory); directory.addChild(this); updateLinkStatus(directory); ((PersistentFSImpl)getPersistence()).incStructuralModificationCount(); }