package app;

import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.HashSet;
import java.util.Set;

public class MinecraftScanner {
    private static final String WIN_USER_HOME_DIR = System.getProperty("user.home");
    private static final String WIN_CURSE_DIR = WIN_USER_HOME_DIR + "\\Documents\\Curse\\Minecraft\\Instances\\";

    private MinecraftScanner() {
    }
    
    public static Set<Path> getCommonMinecraftPaths() {
        HashSet<Path> commonPaths = new HashSet<>();
        commonPaths.addAll(getCurseMinecraftFolders());
        return commonPaths;
    }

    static Set<Path> getCurseMinecraftFolders() {

        HashSet<String> setOfDirectoriesInDir = Utils.getSetOfDirectoriesInDir(WIN_CURSE_DIR);
        HashSet<Path> paths = new HashSet<>();
        for (String dir : setOfDirectoriesInDir) {
            paths.add(Paths.get(dir));
        }
        return paths;
    }
}

@@ -175,20 +175,16 @@
  String 
-WIN_
 USER_HOM
@@ -256,20 +256,16 @@
  String 
-WIN_
 CURSE_DI
@@ -268,20 +268,16 @@
 E_DIR = 
-WIN_
 USER_HOM
@@ -625,17 +625,16 @@
 ers() %7B%0A
-%0A
         
@@ -708,12 +708,8 @@
 Dir(
-WIN_
 CURS

Rename variables