Source:
<code>public IStatus run(IProgressMonitor mymonitor) { PullResult pullResult = null; try (Git git = new Git(repository)) { PullCommand pull = git.pull(); SubMonitor monitor = SubMonitor.convert(mymonitor, 4); <START> pull.setProgressMonitor(new EclipseGitProgressTransformer( monitor)); monitor.newChild(3); <END> pull.setTimeout(timeout); pull.setCredentialsProvider(credentialsProvider); if (config != null) { if (config.getRemote() != null) { pull.setRemote(config.getRemote()); } if (config.getReference() != null) { pull.setRemoteBranchName(config.getReference()); } pull.setRebase(config.getUpstreamConfig()); } MergeStrategy strategy = Activator.getDefault() .getPreferredMergeStrategy(); if (strategy != null) { pull.setStrategy(strategy); } pullResult = pull.call(); synchronized (results) { results.put(repository, pullResult); } IProject[] projects = ProjectUtil .getValidOpenProjects(repository); if (refreshNeeded(pullResult)) { ProjectUtil.refreshValidProjects(projects, monitor); } monitor.newChild(1); return Status.OK_STATUS; } catch (DetachedHeadException e) { return Activator.error( CoreText.PullOperation_DetachedHeadMessage, e); } catch (InvalidConfigurationException e) { return Activator .error(CoreText.PullOperation_PullNotConfiguredMessage, e); } catch (GitAPIException | CoreException e) { return Activator.error(e.getMessage(), e); } catch (JGitInternalException e) { Throwable cause = e.getCause(); if (cause == null || !(cause instanceof TransportException)) cause = e; return Activator.error(cause.getMessage(), cause); } finally { mymonitor.done(); } }</code><technical_language>This pull.setProgressMonitor(new EclipseGitProgressTransformer(monitor.newChild(3)));</technical_language>

Target:
public IStatus run(IProgressMonitor mymonitor) { PullResult pullResult = null; try (Git git = new Git(repository)) { PullCommand pull = git.pull(); SubMonitor monitor = SubMonitor.convert(mymonitor, 4); pull.setProgressMonitor(new EclipseGitProgressTransformer( monitor.newChild(3))); pull.setTimeout(timeout); pull.setCredentialsProvider(credentialsProvider); if (config != null) { if (config.getRemote() != null) { pull.setRemote(config.getRemote()); } if (config.getReference() != null) { pull.setRemoteBranchName(config.getReference()); } pull.setRebase(config.getUpstreamConfig()); } MergeStrategy strategy = Activator.getDefault() .getPreferredMergeStrategy(); if (strategy != null) { pull.setStrategy(strategy); } pullResult = pull.call(); synchronized (results) { results.put(repository, pullResult); } IProject[] projects = ProjectUtil .getValidOpenProjects(repository); if (refreshNeeded(pullResult)) { ProjectUtil.refreshValidProjects(projects, monitor.newChild(1)); } else { monitor.worked(1); } return Status.OK_STATUS; } catch (DetachedHeadException e) { return Activator.error( CoreText.PullOperation_DetachedHeadMessage, e); } catch (InvalidConfigurationException e) { return Activator .error(CoreText.PullOperation_PullNotConfiguredMessage, e); } catch (GitAPIException | CoreException e) { return Activator.error(e.getMessage(), e); } catch (JGitInternalException e) { Throwable cause = e.getCause(); if (cause == null || !(cause instanceof TransportException)) { cause = e; } return Activator.error(cause.getMessage(), cause); } finally { mymonitor.done(); } }