boolean (String inputString) { for (NamedScope scope : holder.getPredefinedScopes()) { if (Comparing.strEqual(scope.getScopeId(), inputString.trim())) { return false; } } return inputString.trim().length() > 0; }