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