boolean (final JUnitConfiguration configuration, PsiClass testClass, PsiMethod testMethod, PsiPackage testPackage, PsiDirectory testDir) { if (testMethod == null) return false; if (testClass == null) return false; final JUnitConfiguration.Data data = configuration.getPersistentData(); /*final PsiClass containingClass = testMethod.getContainingClass(); if (testClass == null && (containingClass == null || !containingClass.hasModifierProperty(PsiModifier.ABSTRACT))) return false; if (containingClass != null && containingClass.hasModifierProperty(PsiModifier.ABSTRACT)) { return Comparing.equal(testMethod.getName(), data.getMethodName()); }*/ return Objects.equals(JavaExecutionUtil.getRuntimeQualifiedName(testClass), data.getMainClassName()) && Objects.equals(JUnitConfiguration.Data.getMethodPresentation(testMethod), data.getMethodNameWithSignature()); }