/**
   * Checks if the current user can view injected variables in the run.
   *
   * @param run Run to be checked
   * @return true if the injected variables can be displayed.
   */
  @Restricted(NoExternalUse.class)
  public static boolean canViewInjectedVars(@Nonnull Run<?, ?> run) {
    // We allow security engines to block the output
    if (VIEW_INJECTED_VARS.getEnabled() && !run.hasPermission(VIEW_INJECTED_VARS)) {
      return false;
    }

    // Last check - global configs
    final EnvInjectPluginConfiguration configuration = getInstance().getConfiguration();
    return !configuration.isHideInjectedVars();
  }
 /*package*/ void onConfigChange(@Nonnull EnvInjectPluginConfiguration config) {
   VIEW_INJECTED_VARS.setEnabled(config.isEnablePermissions());
 }
 @Override
 public void start() throws Exception {
   VIEW_INJECTED_VARS.setEnabled(getConfiguration().isEnablePermissions());
 }