@Override
    public XExpression getItem() {
      Object item = myDelegate.getItem();
      if (item instanceof Document document && !Boolean.TRUE.equals(document.getUserData(DUMMY_DOCUMENT))) { // sometimes null on Mac
        return getEditorsProvider().createExpression(getProject(), document, myExpression.getLanguage(), myExpression.getMode());
      }
      return null;
    }
@Override
    public XExpression getItem()