MatchResultImpl (@NotNull String name) { // @todo this could be performance bottleneck, replace with hash lookup! for (final MatchResult match : myChildren) { final MatchResultImpl res = (MatchResultImpl)match; if (name.equals(res.getName())) { return res; } } return null; }