BitSet allLeftProjs = new BitSet(joinNoOfProjects);
BitSet allRightProjs = new BitSet(joinNoOfProjects);
allLeftProjs.set(0, j.getInput(0).getRowType().getFieldCount(), true);
allRightProjs.set(j.getInput(0).getRowType().getFieldCount(), joinNoOfProjects, true);
InputFinder inputFinder = new InputFinder(filterProjs);
filter.accept(inputFinder);
if (allLeftProjs.intersects(filterProjs) && allRightProjs.intersects(filterProjs))
refersToBothSides = true;