code: 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)) {
              if (job instanceof ConfigurableBeanJob) {
                  BeanDescriptor<?> descriptor = ((ConfigurableBeanJob<?>) job).getDescriptor();
                  label.append(descriptor.getDisplayName());
              } else {
                  label.append(job.toString());
              }
          } 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)) {
                      // special case where jobName is the same as the single
                      // input column - in that case we'll leave out the column
                      // name
                      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) {
                  label.append(" (");
                  label.append(requirement.toString());
                  label.append(")");
              }
          }
  
          return label.toString();
      }
docs: Gets the label of a components job
  
  @param job
  @param includeDescriptorName
  @param includeInputColumnNames
  @param includeRequirements
  
  @return