boolean (@NotNull final PsiElement psiElement, final int offset, final String text, final @NotNull List<? super PsiReference> references, final boolean soft) { FileReferenceSet set = new FileReferenceSet(text, psiElement, offset, null, true, myEndingSlashNotAllowed, mySuitableFileTypes) { @Override protected boolean isUrlEncoded() { return true; } @Override protected boolean isSoft() { return soft; } }; if (!myRelativePathsAllowed) { set.addCustomization(FileReferenceSet.DEFAULT_PATH_EVALUATOR_OPTION, FileReferenceSet.ABSOLUTE_TOP_LEVEL); } Collections.addAll(references, set.getAllReferences()); return true; }