private static File findLibraryBesideJar( String classifier, String ext ) {
		// get location of FlatLaf jar (or fat/uber application jar)
		File jarFile = getJarFile();
		if( jarFile == null )
			return null;

		// build library file
		String libraryName = buildLibraryName( jarFile, classifier, ext );
		File jarDir = jarFile.getParentFile();

		// check whether native library exists in same directory as jar
		File libraryFile = new File( jarDir, libraryName );
		if( libraryFile.isFile() )
			return libraryFile;

		// if jar is in "lib" directory, then also check whether native library exists
		// in "../bin" directory
		if( jarDir.getName().equalsIgnoreCase( "lib" ) ) {
			libraryFile = new File( jarDir.getParentFile(), "bin/" + libraryName );
			if( libraryFile.isFile() )
				return libraryFile;
		}

		// special case: support Gradle cache when running in development environment
		//   <user-home>/.gradle/caches/modules-2/files-2.1/com.formdev/flatlaf/<version>/<hash-1>/flatlaf-<version>.jar
		//   <user-home>/.gradle/caches/modules-2/files-2.1/com.formdev/flatlaf/<version>/<hash-2>/flatlaf-<version>-windows-x86_64.dll
		String path = jarDir.getAbsolutePath().replace( '\\', '/' );
		if( path.contains( "/.gradle/caches/" ) ) {
			File versionDir = jarDir.getParentFile();
			if( libraryName.contains( versionDir.getName() ) ) {
				File[] dirs = versionDir.listFiles();
				if( dirs != null ) {
					for( File dir : dirs ) {
						libraryFile = new File( dir, libraryName );
						if( libraryFile.isFile() )
							return libraryFile;
					}
				}
			}
		}

		// native library not found
		return null;
	}
Search for a native library beside the jar that contains this class
(usually the FlatLaf jar).
The native library must be in the same directory (or in "../bin" if jar is in "lib")
as the jar and have the same basename as the jar.
If FlatLaf jar is repackaged into fat/uber application jar, "-flatlaf" is appended to jar basename.
The classifier and the extension are appended to the jar basename.

E.g.
    flatlaf-3.1.jar
    flatlaf-3.1-windows-x86_64.dll
    flatlaf-3.1-linux-x86_64.so
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatNativeLibrary.java