This should be two methods named something like 

    public boolean hasInlinedIndexScanOfTable(String tableName)

One on AbstractPlanNode that does the general recursion.
One on NestLoopIndexJoin that tests its inline INDEXSCAN and if not a match recurses on its (outer) child node.