boolean (@Nullable String message) { if (message == null) { return false; } Matcher localDelMatcher = LOCAL_DELETE_REMOTE_MODIFIED_CONFLICT_MESSAGE_PATTERN.matcher(message); Matcher localModifyMatcher = REMOTE_DELETE_LOCAL_MODIFIED_CONFLICT_MESSAGE_PATTERN.matcher(message); if (localDelMatcher.matches() || localModifyMatcher.matches()) { return true; } return false; }