/** * Helper method - returns the file item (ie. which returns true to {@link java.io.File#isFile()}, * or null if unbound */ public static synchronized IFileHandle getFile(Object target) { if (existingExternalConfirmedFiles.contains(target)) return (IFileHandle) target; if (target instanceof IFileHandle) { IFileHandle f = (IFileHandle) target; if (f.isFile()) { existingExternalConfirmedFiles.add(f); return f; } } return null; }