public static PsiReference createSoft(PsiReference origin, boolean soft) {
    return new PsiDelegateReference(origin) {
      @Override
      public boolean isSoft() {
        return soft;
      }
    };
  }
public static PsiReference createSoft(PsiReference origin, boolean soft)