LocalQuickFix[] (@Nullable PsiElement node, String errorCode) { List<LocalQuickFix> fixes = new ArrayList<>(); if (node != null) { LocalQuickFix qf = PythonUiService.getInstance().createPyRenameElementQuickFix(node); if (qf != null) { fixes.add(qf); } fixes.add(new IgnoreErrorFix(errorCode)); } return fixes.toArray(new LocalQuickFix[fixes.size()]); }