boolean () { // actually, this `if` is not required, but it makes the class work correctly before `IdeEventQueue` initialization return myEventDispatchThread == null ? EventQueue.isDispatchThread() : isEdt(Thread.currentThread()); }