ErrorType () { final List<CandidateInfo> candidates = getCandidates(); if (candidates.size() != 1) return ErrorType.RESOLVE; if (!candidates.get(0).isStaticsScopeCorrect()) return ErrorType.STATIC; return getResolveError((MethodCandidateInfo)candidates.get(0)); }