void () { PsiMethod testMethod = getTestMethod("TestMoreRelevant.java", "Test/testdata_file.txt", "TestMore/testdata_file.txt", "TestMoreRelevant/testdata_file.txt"); PsiClass testClass = (PsiClass)testMethod.getParent(); List<TestDataFile> result = TestDataGuessByExistingFilesUtil.suggestTestDataFiles("testdata_file", null, testClass); String resultPath = assertOneElement(result).getPath(); assertTrue(resultPath, resultPath.endsWith("TestMoreRelevant/testdata_file.txt")); }