TestDataDescriptor (@NotNull PsiMethod psiMethod, @Nullable String testDataPath) { PsiClass psiClass = PsiTreeUtil.getParentOfType(psiMethod, PsiClass.class); String testName = getTestName(psiMethod); if (testName == null || psiClass == null) return TestDataDescriptor.NOTHING_FOUND; return buildDescriptor(testName, psiClass, testDataPath); }