void (@NotNull VirtualFileEvent event) { VirtualFile file = event.getFile(); if (file.getPath().startsWith(root)) { try { byte[] old = file.contentsToByteArray(); oldContent.put(file, old); } catch (IOException e) { throw new RuntimeException(e); } } }