public static GradleDistribution getGhidraLastGradleDistribution() {
		IPreferenceStore prefs = Activator.getDefault().getPreferenceStore();
		String pref = prefs.getString(GHIDRA_LAST_GRADLE_DISTRIBUTION);
		if (pref != null && !pref.isEmpty()) {
			try {
				return GradleDistribution.fromString(pref);
			}
			catch (Exception e) {
				// Failed to parse the string for some reason.  Fall through to null.
			}
		}
		return null;
	}
Gets the last used Ghidra Gradle distribution that's defined in the preferences.

@return The last used Ghidra Gradle distribution that's defined in the preferences.
  Could be null if there is no last used distribution.
GhidraBuild/EclipsePlugins/GhidraDev/GhidraDevPlugin/src/main/java/ghidradev/ghidraprojectcreator/preferences/GhidraProjectCreatorPreferences.java