private static boolean isMemberSurroundedByClass(PsiElement parent) {
    if (!(parent instanceof PsiMember member) || parent instanceof PsiTypeParameter) {
      return false;
    }
    final PsiClass aClass = member.getContainingClass();
    if (aClass == null) {
      return false;
    }
    @NonNls final String name = aClass.getName();
    return name != null && !"_Dummy_".equals(name);
  }
private static boolean isMemberSurroundedByClass(PsiElement parent)