private static boolean isInside(PsiElement place, Collection<? extends PsiElement> ancestors) {
    for (PsiElement element : ancestors) {
      if (isInside(place, element)) return true;
    }
    return false;
  }
private static boolean isInside(PsiElement place, Collection<? extends PsiElement> ancestors)