docs: public void setCurrentObject(Object obj) {
          if (((obj == null) && (this.nullString != null))
                  || this.requiredType.isInstance(obj)
                  || (obj instanceof String)
                  || (obj instanceof File)
               //   || ((obj instanceof Task) && this.requiredType.isAssignableFrom(((Task) obj).getTaskResultType()))
                  ) {
              this.currentValue = obj;
          } else {
              throw new IllegalArgumentException("Object not of required type.");
          }
      }