void (@NotNull List<XmlElementDescriptor> descriptors, @NotNull PsiElement context) { final Project project = context.getProject(); final JavaPsiFacade facade = JavaPsiFacade.getInstance(project); final GlobalSearchScope scope = GlobalSearchScope.allScope(project); // Offer most used simple types. TODO try to guess suitable types from the project sources addElementDescriptor(descriptors, facade.findClass(CommonClassNames.JAVA_LANG_STRING, scope)); addElementDescriptor(descriptors, facade.findClass(CommonClassNames.JAVA_LANG_DOUBLE, scope)); addElementDescriptor(descriptors, facade.findClass(CommonClassNames.JAVA_LANG_INTEGER, scope)); addElementDescriptor(descriptors, facade.findClass(CommonClassNames.JAVA_LANG_BOOLEAN, scope)); }