private static boolean fromImplicitClassOutsideThisClass(@NotNull PsiMember member, @NotNull PsiElement place) {
    PsiImplicitClass implicitClass = PsiTreeUtil.getParentOfType(member, PsiImplicitClass.class);
    if (implicitClass == null) {
      return false;
    }
    PsiImplicitClass placeImplicitClass = PsiTreeUtil.getParentOfType(place, PsiImplicitClass.class);
    if (placeImplicitClass == null) {
      return true;
    }
    //one of them can be in the copy
    return !member.getManager().areElementsEquivalent(implicitClass, placeImplicitClass);
  }
private static boolean fromImplicitClassOutsideThisClass(@NotNull PsiMember member, @NotNull PsiElement place)