public static boolean isSymlink(File f) {
		try {
			return f != null && Files.isSymbolicLink(f.toPath());
		}
		catch (IllegalArgumentException e) {
			return false;
		}
	}
Helper method to invoke close() on a AutoCloseable without having to catch
an IOException.

@param c {@link AutoCloseable} to close
@param msg optional msg to log if exception is thrown, null is okay
Ghidra/Features/Base/src/main/java/ghidra/formats/gfilesystem/FSUtilities.java