public class UnusedSymbolUtil
extends java.lang.Object
Constructor and Description |
---|
UnusedSymbolUtil() |
Modifier and Type | Method and Description |
---|---|
static HighlightInfo |
createUnusedSymbolInfo(PsiElement element,
java.lang.String message,
HighlightInfoType highlightInfoType) |
static boolean |
isClassUsed(Project project,
PsiFile containingFile,
PsiClass aClass,
ProgressIndicator progress,
GlobalUsageHelper helper) |
static boolean |
isFieldUnused(Project project,
PsiFile containingFile,
PsiField field,
ProgressIndicator progress,
GlobalUsageHelper helper) |
static boolean |
isImplicitRead(Project project,
PsiVariable element) |
static boolean |
isImplicitRead(PsiVariable variable) |
static boolean |
isImplicitUsage(Project project,
PsiModifierListOwner element) |
static boolean |
isImplicitWrite(Project project,
PsiVariable element) |
static boolean |
isImplicitWrite(PsiVariable variable) |
static boolean |
isInjected(Project project,
PsiModifierListOwner modifierListOwner) |
static boolean |
isMethodReferenced(Project project,
PsiFile containingFile,
PsiMethod method,
ProgressIndicator progress,
GlobalUsageHelper helper) |
static boolean |
processUsages(Project project,
PsiFile containingFile,
PsiMember member,
ProgressIndicator progress,
PsiFile ignoreFile,
Processor<? super UsageInfo> usageInfoProcessor) |
public static boolean isInjected(Project project, PsiModifierListOwner modifierListOwner)
public static boolean isImplicitUsage(Project project, PsiModifierListOwner element)
public static boolean isImplicitRead(PsiVariable variable)
public static boolean isImplicitRead(Project project, PsiVariable element)
public static boolean isImplicitWrite(PsiVariable variable)
public static boolean isImplicitWrite(Project project, PsiVariable element)
public static HighlightInfo createUnusedSymbolInfo(PsiElement element, java.lang.String message, HighlightInfoType highlightInfoType)
public static boolean isFieldUnused(Project project, PsiFile containingFile, PsiField field, ProgressIndicator progress, GlobalUsageHelper helper)
public static boolean isMethodReferenced(Project project, PsiFile containingFile, PsiMethod method, ProgressIndicator progress, GlobalUsageHelper helper)
public static boolean processUsages(Project project, PsiFile containingFile, PsiMember member, ProgressIndicator progress, PsiFile ignoreFile, Processor<? super UsageInfo> usageInfoProcessor)
public static boolean isClassUsed(Project project, PsiFile containingFile, PsiClass aClass, ProgressIndicator progress, GlobalUsageHelper helper)