docs: public static IProject getProject(Resource resource) {
  		ProjectAdapter adapter = (ProjectAdapter) EcoreUtil.getAdapter(resource.getResourceSet().eAdapters(), ProjectAdapter.class);
  		if (adapter == null) {
  			final String platformString = resource.getURI().toPlatformString(true);
  			final IProject project = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(platformString)).getProject();
  			adapter = new ProjectAdapter(project);
  			resource.getResourceSet().eAdapters().add(adapter);
  		}
  		return adapter.getProject();
  	}