public void setFilePath(String filePath) {
    String filePathBefore = getMyFilePath();
    this.update(
      () -> myFilePath = filePath,
      (builder, entity) -> {
        if (filePathBefore.equals(filePath)) return;

        builder.modifyEntity(FileOrDirectoryPackagingElementEntity.Builder.class, entity, ent -> {
          VirtualFileUrlManager manager = WorkspaceModel.getInstance(myProject).getVirtualFileUrlManager();
          if (filePath != null) {
            VirtualFileUrl fileUrl = manager.getOrCreateFromUrl(VfsUtilCore.pathToUrl(filePath));
            ent.setFilePath(fileUrl);
          }
          else {
            ent.setFilePath(null);
          }
          return Unit.INSTANCE;
        });
      });
  }
public void setFilePath(String filePath)