public static boolean safeNavigationOperatorDefined(String nestedFieldName){
  if (nestedFieldName.contains(SAFE_NAVIGATION_OPERATOR))   if (!nestedFieldName.startsWith(SAFE_NAVIGATION_OPERATOR))   throw new MappingException("Safe navigation operator must be the first symbol after dot notation");
 else   return true;
  return false;
}

public static boolean safeNavigationOperatorDefined ( String nestedFieldName ) { if ( nestedFieldName . contains ( SAFE_NAVIGATION_OPERATOR ) ) if ( ! nestedFieldName . startsWith ( SAFE_NAVIGATION_OPERATOR ) ) throw new MappingException ( "Safe navigation operator must be the first symbol after dot notation" ) ; else return true ; return false ; }
it checks the presence of the elvis operator and how it is used .
