boolean (final Project project, final GlobalSearchScope searchScope, final String componentClassName, final String propertyName) { PsiClass componentClass = JavaPsiFacade.getInstance(project).findClass(componentClassName, searchScope); if (componentClass == null) { return false; } PsiMethod setter = PropertyUtilBase.findPropertySetter(componentClass, propertyName, false, true); if (setter != null) { PsiParameter[] parameters = setter.getParameterList().getParameters(); if (parameters.length == 1 && "java.lang.String".equals(parameters[0].getType().getCanonicalText()) && AnnotationUtil.isAnnotated(parameters [0], AnnotationUtil.NON_NLS, AnnotationUtil.CHECK_EXTERNAL)) { return true; } } return false; }