@SuppressWarnings("unchecked") public void locationChanged(EditorLocation<T> location) { if (location != null) { for (Inspector inspector : inspectorPanel.getInspectors()) { ((EditorInspector<T>) inspector).locationChanged(location); } } }