@Nullable
  private static PsiElement findPhysicalContext(@NotNull PsiElement element) {
    while (element != null && !element.isPhysical()) {
      element = element.getContext();
    }
    return element;
  }
@Nullable
  private static PsiElement findPhysicalContext(@NotNull PsiElement element)