public Self withParent(final @NotNull Class<? extends ParentType> type) {
    return withParent(StandardPatterns.instanceOf(type));
  }
public Self withParent(final @NotNull Class<? extends ParentType> type)