PathReference (@NotNull String path, @NotNull Module module, @NotNull PsiElement element, PathReferenceProvider... providers) { for (PathReferenceProvider provider : providers) { PathReference reference = provider.getPathReference(path, element); if (reference != null) { return reference; } } return null; }