Source:
public static String getLabel(ComponentJob job, boolean includeDescriptorName, boolean includeInputColumnNames, boolean includeRequirements) { final String jobName = job.getName(); final StringBuilder label = new StringBuilder(); if (Strings.isNullOrEmpty(jobName)) { ComponentDescriptor<?> descriptor = job.getDescriptor(); String baseName = descriptor.getDisplayName(); if (ReflectionUtils.is(descriptor.getComponentClass(), HasLabelAdvice.class)) { try { HasLabelAdvice c = (HasLabelAdvice) descriptor.newInstance(); LifeCycleHelper lch = new LifeCycleHelper((DataCleanerConfiguration) null, (AnalysisJob) null, false); lch.assignConfiguredProperties(descriptor, c, job.getConfiguration()); baseName = c.getSuggestedLabel(); } catch (Exception e) { } } label.append(baseName); } else { label.append(jobName); } if (job instanceof AnalyzerJob) { AnalyzerJob analyzerJob = (AnalyzerJob) job; if (includeDescriptorName && !Strings.isNullOrEmpty(jobName)) { label.append(" ("); label.append(analyzerJob.getDescriptor().getDisplayName()); label.append(')'); } final InputColumn<?>[] input = analyzerJob.getInput(); if (input.length == 1) { if (input[0].getName().equals(jobName)) { includeInputColumnNames = false; } } if (includeInputColumnNames && input.length > 0) { label.append(" ("); if (input.length < 5) { for (int i = 0; i < input.length; i++) { if (i != 0) { label.append(','); } label.append(input[i].getName()); } } else { label.append(input.length); label.append(" columns"); } label.append(")"); } final ComponentRequirement requirement = analyzerJob.getComponentRequirement(); if (includeRequirements && requirement != null) { if (!(requirement instanceof AnyComponentRequirement)) { label.append(" ("); label.append(requirement.toString()); label.append(")"); } } } return label.toString(); }

Target:
public static String getLabel(ComponentJob job, boolean includeDescriptorName, boolean includeInputColumnNames, boolean includeRequirements) { final String jobName = job.getName(); final StringBuilder label = new StringBuilder(); if (Strings.isNullOrEmpty(jobName)) { ComponentDescriptor<?> descriptor = job.getDescriptor(); String baseName = descriptor.getDisplayName(); if (ReflectionUtils.is(descriptor.getComponentClass(), HasLabelAdvice.class)) { try { HasLabelAdvice c = (HasLabelAdvice) descriptor.newInstance(); LifeCycleHelper lch = new LifeCycleHelper((DataCleanerConfiguration) null, (AnalysisJob) null, false); lch.assignConfiguredProperties(descriptor, c, job.getConfiguration()); String suggestedLabel = c.getSuggestedLabel(); if(!StringUtils.isNullOrEmpty(suggestedLabel)) { baseName = suggestedLabel; } } catch (Exception e) { } } label.append(baseName); } else { label.append(jobName); } if (job instanceof AnalyzerJob) { AnalyzerJob analyzerJob = (AnalyzerJob) job; if (includeDescriptorName && !Strings.isNullOrEmpty(jobName)) { label.append(" ("); label.append(analyzerJob.getDescriptor().getDisplayName()); label.append(')'); } final InputColumn<?>[] input = analyzerJob.getInput(); if (input.length == 1) { if (input[0].getName().equals(jobName)) { includeInputColumnNames = false; } } if (includeInputColumnNames && input.length > 0) { label.append(" ("); if (input.length < 5) { for (int i = 0; i < input.length; i++) { if (i != 0) { label.append(','); } label.append(input[i].getName()); } } else { label.append(input.length); label.append(" columns"); } label.append(")"); } final ComponentRequirement requirement = analyzerJob.getComponentRequirement(); if (includeRequirements && requirement != null) { if (!(requirement instanceof AnyComponentRequirement)) { label.append(" ("); label.append(requirement.toString()); label.append(")"); } } } return label.toString(); }