public static @Nullable ProcessOutputType tryCast(@NotNull Key<?> key) {
    return key instanceof ProcessOutputType ? (ProcessOutputType)key : null;
  }
public static @Nullable ProcessOutputType tryCast(@NotNull Key<?> key)