boolean (PsiClass aClass) { for (PsiMethod method : aClass.getConstructors()) { PsiParameterList list = method.getParameterList(); if (list.getParametersCount() == 1 && Objects.requireNonNull(list.getParameter(0)).getType().equalsToText(CommonClassNames.JAVA_LANG_STRING)) { return true; } } return false; }