MavenModel (@NotNull MavenModel model, @NotNull Path basedir, @NotNull Path pomDir) { return perform(() -> { RemotePathTransformerFactory.Transformer transformer = RemotePathTransformerFactory.createForProject(myProject); File targetBasedir = new File(transformer.toRemotePathOrSelf(basedir.toString())); File targetPomDir = new File(transformer.toRemotePathOrSelf(pomDir.toString())); MavenModel m = getServer().interpolateAndAlignModel(model, targetBasedir, targetPomDir, MavenRemoteObjectWrapper.ourToken); if (transformer != RemotePathTransformerFactory.Transformer.ID) { new MavenBuildPathsChange((String s) -> transformer.toIdePath(s), s -> transformer.canBeRemotePath(s)).perform(m); } return m; }); }