@Override
	public boolean isNameCompatible(String compatibleName, Kind testKind) {
		if (compatibleName == null) {
			throw new NullPointerException("simpleName cannot be null");
		}

		if (kind != testKind && testKind == Kind.OTHER) {
			return false;
		}

		String testName = compatibleName + testKind.extension;
		String myName = file.getName();
		if (myName.equals(testName)) {
			return true;
		}

		// check for OSes with non-unique case
		if (myName.equalsIgnoreCase(testName)) {
			ResourceFile canonicalFile = file.getCanonicalFile();
			String myCanonicalName = canonicalFile.getName();
			return myCanonicalName.equals(testName);
		}

		return false;
	}
@return the {@link ResourceFile} this object represents
Ghidra/Features/Base/src/main/java/ghidra/app/script/ResourceFileJavaFileObject.java