String (@NotNull ChooseByNameViewModel base, @NotNull String pattern) { String fullPattern = "*" + removeModelSpecificMarkup(base.getModel(), pattern); for (String separator : base.getModel().getSeparators()) { fullPattern = StringUtil.replace(fullPattern, separator, "*" + UNIVERSAL_SEPARATOR + "*"); } return fullPattern; }