boolean (@Nullable SourcePosition position, @NotNull Location location) { if (position == null) return false; PsiFile psiFile = position.getFile(); if (!psiFile.isValid()) return false; String url = DebuggerUtilsEx.getAlternativeSourceUrl(location.declaringType().name(), psiFile.getProject()); if (url == null) return true; VirtualFile file = psiFile.getVirtualFile(); return file != null && url.equals(file.getUrl()); }