private List<File> getSubdirs(File dir) {
		File[] listing = dir.listFiles(File::isDirectory);
		return listing != null ? Arrays.asList(listing) : List.of();

	}
Gets the direct sub-directories of the given directory (non-recursive)

@param dir The directory to get the sub-directories of
@return The direct sub-directories of the given directory
Ghidra/Framework/Utility/src/main/java/utility/application/AppCleaner.java