ProfileApplicationResult (final MavenModel model, final Path basedir, final MavenExplicitProfiles explicitProfiles, final Collection<String> alwaysOnProfiles) { return perform( () -> { RemotePathTransformerFactory.Transformer transformer = RemotePathTransformerFactory.createForProject(myProject); File targetBasedir = new File(transformer.toRemotePathOrSelf(basedir.toString())); return getServer().applyProfiles(model, targetBasedir, explicitProfiles, new HashSet<>(alwaysOnProfiles), MavenRemoteObjectWrapper.ourToken); }); }