public static File getPyDevSrcDir() throws CoreException {
		Bundle[] bundles =
			FrameworkUtil.getBundle(PyDevUtilsInternal.class).getBundleContext().getBundles();

		Bundle pydevCoreBundle = Stream.of(bundles)
				.filter(bundle -> bundle.getSymbolicName().contains("org.python.pydev.core"))
				.findFirst()
				.orElse(null);

		if (pydevCoreBundle != null) {
			try {
				URL pydevDirUrl = FileLocator.toFileURL(pydevCoreBundle.getEntry("/"));
				URI pydevDirUri =
					new URI(pydevDirUrl.getProtocol(), pydevDirUrl.getPath(), null).normalize();
				Path pysrcDir = Paths.get(pydevDirUri).resolve("pysrc");
				if (Files.exists(pysrcDir)) {
					return pysrcDir.toFile();
				}
			}
			catch (Exception e) {
				throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID,
					IStatus.ERROR, "Problem searching for PyDev source directory", e));
			}
		}

		return null;
	}
Gets The PyDev source directory.

@return The PyDev source directory, or null if it was not found.
@throws CoreException if there was a problem searching for the PyDev source directory.
GhidraBuild/EclipsePlugins/GhidraDev/GhidraDevPlugin/src/main/java/ghidradev/ghidraprojectcreator/utils/PyDevUtils.java