cleanup: get rid of usages of deprecated constants from PsiType (IDEA-309438)

GitOrigin-RevId: 3373eb8b47af51b9f6dd71e565f773d69e8a3218
This commit is contained in:
Nikolay Chashnikov
2023-01-26 12:17:29 +01:00
committed by intellij-monorepo-bot
parent 0a1df5c00a
commit 8ce3039acf
709 changed files with 2554 additions and 2576 deletions

View File

@@ -51,7 +51,7 @@ public class PyConstructorArgumentCompletionContributor extends CompletionContri
final String propName = PropertyUtilBase.getPropertyName(method);
result.addElement(PyUtil.createNamedParameterLookup(propName, origin));
}
else if (method.getName().startsWith("add") && method.getName().endsWith("Listener") && PsiType.VOID.equals(method.getReturnType())) {
else if (method.getName().startsWith("add") && method.getName().endsWith("Listener") && PsiTypes.voidType().equals(method.getReturnType())) {
final PsiParameter[] parameters = method.getParameterList().getParameters();
if (parameters.length == 1) {
final PsiType type = parameters[0].getType();