boolean (String inputString) { if (StringUtil.isEmpty(inputString) || Objects.equals(inputString, myDefaultProfile.getName())) { return false; } for (ProcessorConfigProfile profile : myModuleProfiles) { if (Objects.equals(inputString, profile.getName())) { return false; } } return true; }