TargetFilter (final String targetName) { final List<TargetFilter> filters; synchronized (myOptionsLock) { filters = TARGET_FILTERS.get(myAllOptions); } for (TargetFilter targetFilter : filters) { if (Objects.equals(targetName, targetFilter.getTargetName())) { return targetFilter; } } return null; }