ExpandVariants (@NotNull Url url) { if (pathElements.contains(url)) { if (myLongest.equals(url)) { return ExpandVariants.EXPAND_AND_EXIT; } return ExpandVariants.EXPAND_CONTINUE; } return ExpandVariants.DO_NOTHING; }