void (@NotNull UserDataHolder dataHolder) { var leakedStream = dataHolder.getUserData(ExternalSystemRunConfiguration.RUN_INPUT_KEY); dataHolder.putUserData(ExternalSystemRunConfiguration.RUN_INPUT_KEY, null); if (leakedStream != null) { LOG.warn("Unexpected stream found, closing it..."); } //noinspection deprecation StreamUtil.closeStream(leakedStream); }