@Override
  protected synchronized void initialize() {
    PsiFile psiFile = getPsiElement();
    if (psiFile == null) return;
    UFile file = UastContextKt.toUElement(psiFile, UFile.class);
    String packageName = file != null ? file.getPackageName() : null;
    if (!StringUtil.isEmpty(packageName)) {
      ((RefPackageImpl)getRefManager().getExtension(RefJavaManager.MANAGER).getPackage(packageName)).add(this);
    } else {
      final RefModule module = getModule();
      if (module != null) {
        ((WritableRefEntity)module).add(this);
      } else {
        ((RefProjectImpl)getRefManager().getRefProject()).add(this);
      }
    }
  }
@Override
  protected synchronized void initialize()