@Override
  public String fromString(final @Nullable @NonNls String stringValue, final @NotNull ConvertContext context) {
    if (stringValue != null && ((myAllowEmpty && stringValue.trim().length() == 0) || Arrays.binarySearch(getAllValues(), stringValue) >= 0)) {
      return stringValue;
    }
    return null;
  }
@Override
  public String fromString(final @Nullable @NonNls String stringValue, final @NotNull ConvertContext context)