boolean (@NotNull String prefix) { String[] parts = prefix.split(String.valueOf(LoadingOrder.ORDER_RULE_SEPARATOR)); for (String part : parts) { if (part.trim().equalsIgnoreCase(LoadingOrder.FIRST_STR) || part.trim().equalsIgnoreCase(LoadingOrder.LAST_STR)) { return false; } } return true; }