/** * Returns the class type for the java.lang.Class class. * * @param manager the PSI manager used to create the class type. * @param resolveScope the scope in which the class is searched. * @return the class instance. */ @NotNull public static PsiClassType getJavaLangClass(@NotNull PsiManager manager, @NotNull GlobalSearchScope resolveScope) { return getTypeByName(CommonClassNames.JAVA_LANG_CLASS, manager.getProject(), resolveScope); }
/** * Returns the class type for the java.lang.Object class. * * @param manager the PSI manager used to create the class type. * @param resolveScope the scope in which the class is searched. * @return the class instance. */ @NotNull public static PsiClassType getJavaLangObject(@NotNull PsiManager manager, @NotNull GlobalSearchScope resolveScope) { return getTypeByName(CommonClassNames.JAVA_LANG_OBJECT, manager.getProject(), resolveScope); }
/** * Returns the class type for the java.lang.String class. * * @param manager the PSI manager used to create the class type. * @param resolveScope the scope in which the class is searched. * @return the class instance. */ @NotNull public static PsiClassType getJavaLangString(@NotNull PsiManager manager, @NotNull GlobalSearchScope resolveScope) { return getTypeByName(CommonClassNames.JAVA_LANG_STRING, manager.getProject(), resolveScope); }
/** * Returns the class type for the java.lang.Throwable class. * * @param manager the PSI manager used to create the class type. * @param resolveScope the scope in which the class is searched. * @return the class instance. */ @NotNull public static PsiClassType getJavaLangThrowable(@NotNull PsiManager manager, @NotNull GlobalSearchScope resolveScope) { return getTypeByName(CommonClassNames.JAVA_LANG_THROWABLE, manager.getProject(), resolveScope); }
/** * Returns the class type for the java.lang.Error class. * * @param manager the PSI manager used to create the class type. * @param resolveScope the scope in which the class is searched. * @return the class instance. */ @NotNull public static PsiClassType getJavaLangError(@NotNull PsiManager manager, @NotNull GlobalSearchScope resolveScope) { return getTypeByName(CommonClassNames.JAVA_LANG_ERROR, manager.getProject(), resolveScope); }
/** * Returns the class type for the java.lang.RuntimeException class. * * @param manager the PSI manager used to create the class type. * @param resolveScope the scope in which the class is searched. * @return the class instance. */ @NotNull public static PsiClassType getJavaLangRuntimeException(@NotNull PsiManager manager, @NotNull GlobalSearchScope resolveScope) { return getTypeByName(CommonClassNames.JAVA_LANG_RUNTIME_EXCEPTION, manager.getProject(), resolveScope); }
return !PsiType.getTypeByName( "java.lang.Iterable", resolveScope.getProject(), resolveScope ).isAssignableFrom( psiType ) && !PsiType.getTypeByName( "java.util.Map", resolveScope.getProject(),