Beispiel #1
0
 public Comparable weigh(@NotNull final PsiElement element, final ProximityLocation location) {
   final LogicalRoot elementRoot = findLogicalRoot(element);
   final LogicalRoot contextRoot = findLogicalRoot(location.getPosition());
   return elementRoot != null && contextRoot != null && elementRoot.equals(contextRoot);
 }