mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
faster non-producing of file references
This commit is contained in:
+5
@@ -75,6 +75,11 @@ public class FilePathReferenceProvider extends PsiReferenceProvider {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean acceptsTarget(@NotNull PsiElement target) {
|
||||
return target instanceof PsiFileSystemItem;
|
||||
}
|
||||
|
||||
protected boolean isPsiElementAccepted(PsiElement element) {
|
||||
return !(element instanceof PsiJavaFile && element instanceof PsiCompiledElement);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user