Program: 139272
Project: 139272
Buggy source:
@SuppressWarnings("String_Node_Str") public Object[] getChildren(Object parentElement){
  if (parentElement instanceof IContainer) {
    IContainer container=((IContainer)parentElement);
    IResource[] members=null;
    try {
      members=container.members();
    }
 catch (    CoreException e) {
      log.error("String_Node_Str" + container.getLocation());
    }
    if (ResourceManager.getConnectionFolder().equals(container) || ResourceManager.getMDMConnectionFolder().equals(container)) {
      ComparatorsFactory.sort(members,ComparatorsFactory.FILEMODEL_COMPARATOR_ID);
    }
    return clearMdmFolder(members,mdmFlag);
  }
 else   if (parentElement instanceof NamedColumnSet) {
    return null;
  }
 else   if (parentElement instanceof NamedColumnSetFolderNode) {
    NamedColumnSetFolderNode folerNode=(NamedColumnSetFolderNode)parentElement;
    folerNode.loadChildren();
    Object[] children=folerNode.getChildren();
    if (children != null && children.length > 0) {
      if (!(children[0] instanceof ColumnSet)) {
        return children;
      }
      for (int i=0; i < children.length; i++) {
        ColumnSet columnSet=(ColumnSet)children[i];
        ModelElementKey key=new ModelElementKeyImpl(columnSet);
        if (modelElementCheckedMap.containsKey(key)) {
          currentCheckedModelElement.add(columnSet);
        }
      }
    }
    return ComparatorsFactory.sort(children,ComparatorsFactory.MODELELEMENT_COMPARATOR_ID);
  }
 else   if (parentElement instanceof TdXMLDocument || parentElement instanceof TdXMLElement) {
    boolean isXmlDocument=parentElement instanceof TdXMLDocument;
    List<? extends ModelElement> modelElements=isXmlDocument ? DqRepositoryViewService.getXMLElements((TdXMLDocument)parentElement) : DqRepositoryViewService.getXMLElements((TdXMLElement)parentElement);
    Object[] children=XmlElementHelper.clearLeafNode(modelElements).toArray();
    if (children != null && children.length > 0) {
      if (!(children[0] instanceof TdXMLElement)) {
        return children;
      }
      for (int i=0; i < children.length; i++) {
        TdXMLElement xmlElement=(TdXMLElement)children[i];
        ModelElementKey key=new ModelElementKeyImpl(xmlElement);
        if (modelElementCheckedMap.containsKey(key)) {
          currentCheckedModelElement.add(xmlElement);
        }
      }
    }
    return children.length == 0 ? null : children;
  }
  return super.getChildren(parentElement);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public Object[] getChildren(Object parentElement){
  if (parentElement instanceof IContainer) {
    IContainer container=(IContainer)parentElement;
    IResource[] members=null;
    try {
      members=container.members();
    }
 catch (    CoreException e) {
      log.error("String_Node_Str" + container.getLocation());
    }
    if (ResourceManager.getConnectionFolder().equals(container) || ResourceManager.getMDMConnectionFolder().equals(container)) {
      ComparatorsFactory.sort(members,ComparatorsFactory.FILEMODEL_COMPARATOR_ID);
    }
    return members;
  }
 else   if (parentElement instanceof NamedColumnSet) {
    return null;
  }
 else   if (parentElement instanceof NamedColumnSetFolderNode) {
    NamedColumnSetFolderNode folerNode=(NamedColumnSetFolderNode)parentElement;
    folerNode.loadChildren();
    Object[] children=folerNode.getChildren();
    if (children != null && children.length > 0) {
      if (!(children[0] instanceof ColumnSet)) {
        return children;
      }
      for (int i=0; i < children.length; i++) {
        ColumnSet columnSet=(ColumnSet)children[i];
        ModelElementKey key=new ModelElementKeyImpl(columnSet);
        if (modelElementCheckedMap.containsKey(key)) {
          currentCheckedModelElement.add(columnSet);
        }
      }
    }
    return ComparatorsFactory.sort(children,ComparatorsFactory.MODELELEMENT_COMPARATOR_ID);
  }
 else   if (parentElement instanceof TdXMLDocument || parentElement instanceof TdXMLElement) {
    boolean isXmlDocument=parentElement instanceof TdXMLDocument;
    List<? extends ModelElement> modelElements=isXmlDocument ? DqRepositoryViewService.getXMLElements((TdXMLDocument)parentElement) : DqRepositoryViewService.getXMLElements((TdXMLElement)parentElement);
    Object[] children=XmlElementHelper.clearLeafNode(modelElements).toArray();
    if (children != null && children.length > 0) {
      if (!(children[0] instanceof TdXMLElement)) {
        return children;
      }
      for (int i=0; i < children.length; i++) {
        TdXMLElement xmlElement=(TdXMLElement)children[i];
        ModelElementKey key=new ModelElementKeyImpl(xmlElement);
        if (modelElementCheckedMap.containsKey(key)) {
          currentCheckedModelElement.add(xmlElement);
        }
      }
    }
    return children.length == 0 ? null : children;
  }
  return super.getChildren(parentElement);
}