public void addNearKey(KeyCacheObject key,GridCacheSharedContext ctx) throws IgniteCheckedException {
  if (nearKeys == null)   nearKeys=new ArrayList<>();
  nearKeys.add(key);
}

public void addNearKey ( KeyCacheObject key , GridCacheSharedContext ctx ) throws IgniteCheckedException { if ( nearKeys == null ) nearKeys = new ArrayList < > ( ) ; nearKeys . add ( key ) ; }
adds a near key .
