docs: protected ClassNode storeInferredReturnType(final ASTNode node, final ClassNode type) {
          if (!(node instanceof ClosureExpression)) {
              throw new IllegalArgumentException("Storing inferred return type is only allowed on closures but found " + node.getClass());
          }
          return (ClassNode) node.putNodeMetaData(StaticTypesMarker.INFERRED_RETURN_TYPE, type);
      }