LinkedHashSet<String> (Location<PsiMethod> @NotNull [] testMethods) { return Arrays.stream(testMethods) .map(method -> { Iterator<Location<PsiClass>> ancestors = method.getAncestors(PsiClass.class, true); return JavaExecutionUtil.getRuntimeQualifiedName(ancestors.next().getPsiElement()) + "," + method.getPsiElement().getName(); }) .collect(Collectors.toCollection(LinkedHashSet::new)); }