public List<PanelType> filterByInverFlag(List<PanelType> panelList, boolean excludeFlag) {
    int checkInvertVal = 0;
    if (excludeFlag == true) {
      checkInvertVal = 1;
    }
    List<PanelType> excludePanelList = new ArrayList<PanelType>();
    for (PanelType panelType : panelList) {

      int invert = panelType.getInvert();
      if (invert == checkInvertVal) {
        excludePanelList.add(panelType);
      }
    }
    return excludePanelList;
  }