Action (@NotNull TreePath path) { int count = path.getPathCount(); if (count > elements.length) return Action.SKIP_CHILDREN; boolean matches = elements[count - 1].isMatchTo(path.getLastPathComponent()); return !matches ? Action.SKIP_CHILDREN : (count < elements.length ? Action.CONTINUE : Action.INTERRUPT); }