boolean (final TypeMigrationUsageInfo usageInfo, @NotNull PsiType type) { final LinkedList<PsiType> t = myTypeMap.get(usageInfo); final PsiElement element = usageInfo.getElement(); if (type instanceof PsiEllipsisType && !(element instanceof PsiParameter && ((PsiParameter)element).getDeclarationScope() instanceof PsiMethod)) { type = ((PsiEllipsisType)type).toArrayType(); } if (t != null) { if (!t.getFirst().equals(type)) { if (element instanceof PsiVariable || element instanceof PsiMethod) { return false; } t.addFirst(type); return true; } } else { final LinkedList<PsiType> e = new LinkedList<>(); e.addFirst(type); usageInfo.setOwnerRoot(myLabeler.getCurrentRoot()); myTypeMap.put(usageInfo, e); return true; } return false; }