private static @Nullable AttributesVariableModel create(@NotNull String fileVarName,
                                                              @NotNull PsiElement context, @NotNull PsiElement anchor) {
        PsiClassType psiType = TypeUtils.getType("java.nio.file.attribute.BasicFileAttributes", context);
        PsiExpression initializer = createInitializer(context, psiType, fileVarName);
        String name = getSuggestedName(psiType, initializer, anchor);
        if (name == null) return null;
        boolean needsTryCatch = needsTryCatchBlock(anchor);
        return new AttributesVariableModel(psiType, name, initializer, needsTryCatch);
      }
private static @Nullable AttributesVariableModel create(@NotNull String fileVarName,
                                                              @NotNull PsiElement context, @NotNull PsiElement anchor)