public static Collection<IJavaProject> getJavaProjects() {
		List<IJavaProject> javaProjects = new ArrayList<>();
		for (IProject project : ResourcesPlugin.getWorkspace().getRoot().getProjects()) {
			if (project.isOpen() && isJavaProject(project)) {
				javaProjects.add(JavaCore.create(project));
			}
		}
		return javaProjects;
	}
Gets all of the open Java projects in the workspace.

@return A collection of the open Java projects in the workspace.
GhidraBuild/EclipsePlugins/GhidraDev/GhidraDevPlugin/src/main/java/ghidradev/ghidraprojectcreator/utils/GhidraProjectUtils.java