Should be encapsulated to don't let the caller the responsibility to encapsulate or not as they read the model.
com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Read access is allowed from inside read-action only (see Application.runReadAction()); If you access or modify model on EDT consider wrapping your code in WriteIntentReadAction or ReadAction; see https://jb.gg/ij-platform-threading for details
Current thread: Thread[#96,Netty Builtin Server 1,5,main] 93545463 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[#46,AWT-EventQueue-0,6,main] 1802300015