Matcher matcher = new NewPlayerMatcher(); BasicFinder finder = new BasicFinder(); JMenuItem item = (JMenuItem) finder.find(container, matcher);