* the name of the method that was called
*/
public static void logIfNotOnEDT(Class<?> clazz, String method) {
if (!EventQueue.isDispatchThread()) {
ErrorLog.log(clazz, method + " should be called on the event-dispatching thread.",
new UiThreadViolationException());
}
}