private static @Nullable String getTypeNameWithoutIndex(@NotNull PsiType type) {
    type = type.getDeepComponentType();
    return type instanceof PsiClassType ? ((PsiClassType)type).getClassName() :
           type instanceof PsiPrimitiveType ? type.getPresentableText() :
           null;
  }
private static @Nullable String getTypeNameWithoutIndex(@NotNull PsiType type)