src/sap.ui.rta/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js
function _hasNavigationBindings(aBindingPaths, aNavigationProperties, aNavigationEntityNames, aBindingContextPaths) {
		var bNavigationInBindingPath = _hasBindings(aBindingPaths)
			&& aBindingPaths.some(function (sPath) {
				var aParts = sPath.trim().replace(/^\//gi, '').split('/');
				if (aParts.length > 1) {
					return aNavigationProperties.indexOf(aParts.shift()) !== -1;
				}
			});

		// BindingContextPath : "/SEPMRA_C_PD_Supplier('100000001')"
		// NavigationEntityName : "SEPMRA_C_PD_Supplier"
		var bNavigationInEntity = aBindingContextPaths.some(function(sContextPath){
			sContextPath = sContextPath.match(/^\/?([A-Za-z0-9_]+)/)[0];
			return (aNavigationEntityNames.indexOf(sContextPath) >= 0);
		});

		return bNavigationInBindingPath || bNavigationInEntity;
	}
function _hasNavigationBindings(aBindingPaths, aNavigationProperties, aNavigationEntityNames, aBindingContextPaths) {
		var bNavigationInBindingPath = _hasBindings(aBindingPaths)
			&& aBindingPaths.some(function (sPath) {
				var aParts = sPath.trim().replace(/^\//gi, '').split('/');
				if (aParts.length > 1) {
					return aNavigationProperties.indexOf(aParts.shift()) !== -1;
				}
			});

		// BindingContextPath : "/SEPMRA_C_PD_Supplier('100000001')"
		// NavigationEntityName : "SEPMRA_C_PD_Supplier"
		var bNavigationInEntity = aBindingContextPaths.some(function(sContextPath){
			sContextPath = sContextPath.match(/^\/?([A-Za-z0-9_]+)/)[0];
			return (aNavigationEntityNames.indexOf(sContextPath) >= 0);
		});

		return bNavigationInBindingPath || bNavigationInEntity;
	}
function _hasNavigationBindings ( aBindingPaths , aNavigationProperties , aNavigationEntityNames , aBindingContextPaths ) { var bNavigationInBindingPath = _hasBindings ( aBindingPaths ) && aBindingPaths . some ( function ( sPath ) { var aParts = sPath . trim ( ) . replace ( / ^\/ / gi , '' ) . split ( '/' ) ; if ( aParts . length > 1 ) { return aNavigationProperties . indexOf ( aParts . shift ( ) ) !== - 1 ; } } ) ; // BindingContextPath : "/SEPMRA_C_PD_Supplier('100000001')" // NavigationEntityName : "SEPMRA_C_PD_Supplier" var bNavigationInEntity = aBindingContextPaths . some ( function ( sContextPath ) { sContextPath = sContextPath . match ( / ^\/?([A-Za-z0-9_]+) / ) [ 0 ] ; return ( aNavigationEntityNames . indexOf ( sContextPath ) >= 0 ) ; } ) ; return bNavigationInBindingPath || bNavigationInEntity ; }
Checks if array of paths contains bindings through navigation

@param {Array.<String>} aBindingPaths - Array of collected binding paths
@param {Array.<Object>} aNavigationProperties - Array of Navigation Properties
@param {Array.<String>} aNavigationEntityNames - Array of Navigation Entity Names
@param {Array.<String>} aBindingContextPaths - Array of Binding Context Paths

@return {Boolean} - true if it has at least one navigational binding
Checks if array of paths contains bindings through navigation