/** * Check thread access and throw exception if is not component thread. */ protected static void checkThreadAccess(IInternalAccess component, boolean proxy) { checkComponent(component); if(proxy && !component.getComponentFeature(IExecutionFeature.class).isComponentThread()) throw new RuntimeException("Must be called on component thread. Use methods with external access otherwise."); }