replace if checks for not EDT with asserts, so that methods are only called from EDT or not, never a mixture of both cases