LightPsiFileImpl () { final FileViewProvider provider = getViewProvider().clone(); final LightPsiFileImpl clone = (LightPsiFileImpl)provider.getPsi(getLanguage()); copyCopyableDataTo(clone); if (getViewProvider().isEventSystemEnabled()) { clone.myOriginalFile = this; } else if (myOriginalFile != null) { clone.myOriginalFile = myOriginalFile; } return clone; }