List<String> () { myFixture.configureByFile("referenceCollector/" + getTestName(false) + ".java"); for (PsiClass aClass : ((PsiJavaFile)myFixture.getFile()).getClasses()) { if (aClass.getName().equals("ATest")) { Set<PsiClass> classes = new LinkedHashSet<>(); classes.add(aClass); for (PsiClass innerClass : aClass.getAllInnerClasses()) { classes.add(innerClass); classes.addAll(Arrays.asList(innerClass.getAllInnerClasses())); } List<TestDataFile> testDataFiles = new ArrayList<>(); for (PsiClass psiClass : classes) { String testDataPath = TestDataLineMarkerProvider.getTestDataBasePath(psiClass); for(final PsiMethod theMethod : psiClass.getMethods()) { if (theMethod.getModifierList().hasModifierProperty(PsiModifier.PUBLIC)) { testDataFiles.addAll( new TestDataReferenceCollector(testDataPath != null ? testDataPath : "", theMethod.getName().substring(4)).collectTestDataReferences(theMethod)); } } } return ContainerUtil.map(testDataFiles, f -> f.getPath()); } } throw new RuntimeException("Couldn't find class ATest in test data file"); }