Remove unused field 'diagram'
Remove unused local variable 'fig'
Add @SuppressWarnings("unchecked") annotations because GEF still uses the raw types
Use Edge.isFeedback() instead of deprecated Edge.isFeedback