static HighlightInfo.Builder checkClassAndPackageConflict(@NotNull PsiClass aClass) {
    String name = aClass.getQualifiedName();
    if (name == null) return null;
    if (CommonClassNames.DEFAULT_PACKAGE.equals(name)) {
      return createInfoAndRegisterRenameFix(aClass, name, "class.clashes.with.package");
    }

    PsiElement file = aClass.getParent();
    if (file instanceof PsiJavaFile && !((PsiJavaFile)file).getPackageName().isEmpty()) {
      PsiElement directory = file.getParent();
      if (directory != null) {
        String simpleName = aClass.getName();
        PsiDirectory subDirectory = simpleName == null ? null : ((PsiDirectory)directory).findSubdirectory(simpleName);
        if (subDirectory != null && simpleName.equals(subDirectory.getName()) && PsiTreeUtil.findChildOfType(subDirectory, PsiJavaFile.class) != null) {
          return createInfoAndRegisterRenameFix(aClass, name, "class.clashes.with.package");
        }
      }
    }

    return null;
  }
static HighlightInfo.Builder checkClassAndPackageConflict(@NotNull PsiClass aClass)