void (CharSequence resourceName, final Collection<? extends Element> elements) { if (resourceName != null && resourceName.length() > 0 && !elements.isEmpty()) { myFileManager.addAnnotationProcessingClassMapping(resourceName.toString(), Iterators.filter(Iterators.map(elements, convertToClassName), Iterators.notNullFilter())); } }