private static boolean isTestMethodWithAnnotation(@NotNull PsiMethod method) { String name = method.getName(); if (!name.startsWith("test")) { return false; } String testDataPath = getTestDataBasePath(method.getContainingClass()); if (testDataPath == null) { return false; } List<String> fileNames = new TestDataReferenceCollector( testDataPath, TestDataGuessByExistingFilesUtil.getTestName(name)) .collectTestDataReferences(method); return fileNames != null && !fileNames.isEmpty(); }