public MemberChooser(
     T[] elements,
     boolean allowEmptySelection,
     boolean allowMultiSelection,
     @NotNull Project project,
     @Nullable JComponent headerPanel,
     JComponent[] optionControls) {
   this(allowEmptySelection, allowMultiSelection, project, false, headerPanel, optionControls);
   resetElements(elements);
   init();
 }
 public MemberChooser(
     T[] elements,
     boolean allowEmptySelection,
     boolean allowMultiSelection,
     @NotNull Project project,
     boolean isInsertOverrideVisible,
     @Nullable JComponent headerPanel) {
   this(
       allowEmptySelection,
       allowMultiSelection,
       project,
       isInsertOverrideVisible,
       headerPanel,
       null);
   resetElements(elements);
   init();
 }
 public void resetElements(T[] elements) {
   resetElements(elements, null, false);
 }
 protected void resetElementsWithDefaultComparator(
     T[] elements, final boolean restoreSelectedElements) {
   myComparator = myAlphabeticallySorted ? new AlphaComparator() : new OrderComparator();
   resetElements(elements, null, restoreSelectedElements);
 }