public static boolean clickMatch(RSItem item, String regex){ return item.doAction((Filter<RSMenuNode>) rsMenuNode -> { String action = rsMenuNode.getAction(); return action != null && action.matches(regex); }); } Predicate handling could be wrong
Predicate handling could be wrong