Comparable (final @NotNull PsiElement element, final @NotNull ProximityLocation location) { Project project = location.getProject(); if (project == null || project.isDefault()) { return null; } final PsiFile psiFile = element.getContainingFile(); if (psiFile == null) return false; final VirtualFile virtualFile = psiFile.getOriginalFile().getVirtualFile(); return virtualFile != null && ArrayUtil.find(OPENED_EDITORS.getValue(location), virtualFile) != -1; }