void (final T member, final T sourceElement, HashSet<T> dependencies, HashMap<T, HashSet<T>> dependenciesToDependentMap) { if (LOG.isDebugEnabled()) { LOG.debug(member.toString()); } dependencies.add(member); if (sourceElement != null) { HashSet<T> relations = dependenciesToDependentMap.get(member); if (relations == null) { relations = new HashSet<>(); dependenciesToDependentMap.put(member, relations); } relations.add(sourceElement); } }