code: public static Collection<IAction> getRegisteredActions(ActionScope scope) {
          Map<String, IAction> actions = new HashMap<>();
          
          if (scope == ActionScope.BOTH || scope == ActionScope.GLOBAL) {
              actions.putAll(getRegistry(true).map);
          }
          
          if (scope == ActionScope.BOTH || scope == ActionScope.LOCAL) {
              actions.putAll(getRegistry(false).map);
          }
          
          return actions.values();
      }
docs: Returns a collection of actions registered to the specified scope.
  
  @param scope Action scope from which to retrieve.
  @return Actions associated with specified scope.