boolean (@NotNull RemoteExternalSystemFacade facade) { RemoteExternalSystemFacade toCheck = facade; if (facade instanceof ExternalSystemFacadeWrapper) { toCheck = ((ExternalSystemFacadeWrapper)facade).getDelegate(); } if (toCheck instanceof InProcessExternalSystemFacadeImpl) { return false; } try { facade.getResolver(); return true; } catch (RemoteException e) { return false; } }