I would jump out of the method asap. The problem with this approach is that you get deep levels of nesting and you get bad code.

     if(!nearcCacheEnabled){
        return 
     }

       final boolean cacheLocalEntries = mapConfig.getNearCacheConfig().isCacheLocalEntries();
       if (!cacheLocalEntries) {
           return;
       }
 
      final MapService mapService = getService();
     mapService.invalidateNearCache(name, key);

Having a single exit point per method is so unbelievable dated. And if you can't understand a method because it has too many exit points, the method is too long/complex anyway. So jump out as soon as you get the chance.