public static boolean isPotentialValidLink(final Path path) {
		if (!Files.exists(path))
			return false;
		if (!IOUtil.getExtension(path).equals("lnk"))
			return false;
		final int minimumLength = 0x64;
		try (InputStream fis = Files.newInputStream(path)) {
			if (fis.available() < minimumLength) {
				return false;
			}
			int bufSize = 64;
			byte[] buf = new byte[bufSize];
			int offset = 0;
			while (bufSize != 0) {
				int read = fis.read(buf, offset, bufSize);
				if (read == -1) {
					break;
				}
				bufSize -= read;
				offset += read;
			}
			return fis.available() >= minimumLength &&
					isMagicPresent(IOUtil.toByteArray(fis, Arrays.copyOf(buf, offset)));
		} catch (Exception ex) {
			return false;
		}
	}
Provides a quick test to see if this could be a valid link !
If you try to instantiate a new WindowShortcut and the link is not valid,
Exceptions may be thrown and Exceptions are extremely slow to generate,
therefore any code needing to loop through several files should first check this.

@param path
		the potential link

@return true if may be a link, false otherwise
recaf-core/src/main/java/software/coley/recaf/util/ShortcutUtil.java