private void setTypesAndPreselect(PsiType[] types) {
    myTypeSelector.setTypes(types);

    final PsiType preferredType = getPreferredType(types, getDefaultType());
    if (preferredType != null) {
      myTypeSelector.selectType(preferredType);
    }
  }
private void setTypesAndPreselect(PsiType[] types)