void (PsiClass aClass) { String className = aClass.getName(); myData.MAIN_CLASS_NAME += "$" + className; Set<@NlsSafe String> patterns = myData.getPatterns(); if (!patterns.isEmpty()) { myData.setPatterns(patterns.stream().map(name -> { if (name.contains(",")) { return StringUtil.getPackageName(name, ',') + "$" + className + "," + StringUtil.getShortName(name, ','); } return name + "$" + className; }).collect(Collectors.toCollection(() -> new LinkedHashSet<>()))); } }