Collection<PsiMethod> (@NotNull final ClsClassImpl trait) { return CachedValuesManager.getCachedValue(trait, () -> { final Collection<PsiMethod> result = new ArrayList<>(); doCollectCompiledTraitMethods(trait, result); return CachedValueProvider.Result.create(result, trait); }); }