boolean (@NotNull FrameworkType type) { for (ExcludeListItem item : myModel.getItems()) { if (type.getId().equals(item.getFrameworkTypeId()) && item.getFileUrl() == null) { return true; } } return false; }