@Override
	public void stop(BundleContext context) throws Exception {
		plugin = null;
		super.stop(context);
		EclipseMessageUtils.info("Stopping " + PLUGIN_ID + " plugin");
		
		// Close registered items
		synchronized (this) {
			for (Closeable c : closeSet) {
				if (c != null) {
					EclipseMessageUtils.info("Closing " + c);
					try {
						c.close();
					}
					catch (IOException e) {
						EclipseMessageUtils.info("Failed to close " + c);
					}
				}
			}
			closeSet.clear();
		}
	}
Checks to see if Eclipse was launched by Ghidra.

@return True if Eclipse was launched by Ghidra; otherwise, false.
GhidraBuild/EclipsePlugins/GhidraDev/GhidraDevPlugin/src/main/java/ghidradev/Activator.java