boolean (final JUnitConfiguration configuration, PsiClass testClass, PsiMethod testMethod, PsiPackage testPackage, PsiDirectory testDir) { if (testClass == null) { return false; } if (testMethod != null) { // 'test class' configuration is not equal to the 'test method' configuration! return false; } return Objects.equals(JavaExecutionUtil.getRuntimeQualifiedName(testClass), configuration.getPersistentData().getMainClassName()); }