Collection<String> (@Nullable String className, String fileName) { if (className != null) { Collection<String> dotsResult = myGeneratedToOriginatingMap.get(className.replace('/', '.')); // normalize classname: eclipse compiler sometimes outputs internal class names return dotsResult != null? dotsResult : myGeneratedToOriginatingMap.get(className.replace('.', '/')); } return myGeneratedToOriginatingMap.get(fileName); }