void (JavaTestConfigurationBase configuration, PsiMethod sourceMethod, Module targetModule) { setPosition(configuration, new PsiLocation<>(sourceMethod)); Pair<String, String> position = getPosition(configuration); configuration.setName("Tests for " + StringUtil.getShortName(position.first) + "." + position.second); configuration.setModule(targetModule); }