private static List<String> presentEro(NsiRequesterConnection connection) { if (connection.getEro() == null) { return Collections.emptyList(); } return connection.getEro().stream().map(ero -> ero.getStp()).collect(Collectors.toList()); }