Replace calls to QuickFixUtil.canModify by calls to canRefactor

Fix ChangeFunctionSignatureFix#isAvailable
This commit is contained in:
Pavel V. Talanov
2015-12-11 17:40:35 +03:00
parent a667aa2f71
commit 6a780f01bd
8 changed files with 14 additions and 20 deletions
@@ -87,10 +87,6 @@ public class QuickFixUtil {
return matchingReturnType;
}
public static boolean canModifyElement(@NotNull PsiElement element) {
return element.isWritable();
}
@Nullable
public static PsiElement safeGetDeclaration(@Nullable CallableDescriptor descriptor) {
//do not create fix if descriptor has more than one overridden declaration