boolean (Object object) { if (object instanceof CellRendererPane) return true; if (object == null) { return true; } for (Class aClass : myControlsToIgnore) { if (ReflectionUtil.isAssignable(aClass, object.getClass())) { return true; } } return false; }