public Object getAdapter(Class adapter) {
if( adapter.isAssignableFrom(projectElement.getClass())){
return projectElement;
}
if( projectElement instanceof ProjectElementAdapter){
IGenericProjectElement genericProjectElement = ((ProjectElementAdapter) projectElement).getBackingObject();
if( adapter.isAssignableFrom(genericProjectElement.getClass())){
return genericProjectElement;
}
}
return null;
}