public void setDateFormatPattern(@NotNull String pattern) {
    try {
      //noinspection ResultOfObjectAllocationIgnored
      new SimpleDateFormat(pattern);
      myPattern = pattern;
    }
    catch (Exception ignored) { }
  }
public void setDateFormatPattern(@NotNull String pattern)