package net.seesharpsoft.intellij.plugins.csv.psi;

import com.intellij.patterns.PlatformPatterns;
import com.intellij.psi.PsiReferenceContributor;
import com.intellij.psi.PsiReferenceProvider;
import com.intellij.psi.PsiReferenceRegistrar;
import com.intellij.psi.impl.source.resolve.reference.ArbitraryPlaceUrlReferenceProvider;
import org.jetbrains.annotations.NotNull;

public class CsvPsiReferenceContributor extends PsiReferenceContributor {

    private static PsiReferenceProvider CSV_URL_REFERENCE_PROVIDER_SINGLETON = new ArbitraryPlaceUrlReferenceProvider();

    @Override
    public void registerReferenceProviders(@NotNull PsiReferenceRegistrar registrar) {
        registrar.registerReferenceProvider(PlatformPatterns.psiFile(CsvFile.class), CSV_URL_REFERENCE_PROVIDER_SINGLETON, PsiReferenceRegistrar.LOWER_PRIORITY);
    }
}

@@ -145,54 +145,8 @@
 or;%0A
-import com.intellij.psi.PsiReferenceProvider;%0A
 impo
@@ -399,131 +399,8 @@
 r %7B%0A
-%0A    private static PsiReferenceProvider CSV_URL_REFERENCE_PROVIDER_SINGLETON = new ArbitraryPlaceUrlReferenceProvider();%0A%0A
     
@@ -585,44 +585,48 @@
 s), 
-CSV_URL_REFERENCE_PROVIDER_SINGLETON
+new ArbitraryPlaceUrlReferenceProvider()
 , Ps

remove further unused singleton