docs: public Map<String, Declaration> getInnerDeclarations() {
          final Map inner = new HashMap( this.basePattern.getOuterDeclarations() );
          for ( Pattern pattern : remainingPatterns ) {
              inner.putAll( pattern.getOuterDeclarations() );
          }
          return inner;
      }