idea/community.git
4 years agoinference: don't distinguish parameterizations with 2 different interfaces (IDEA...
Anna.Kozlova [Tue, 15 Nov 2016 13:48:31 +0000 (14:48 +0100)]
inference: don't distinguish parameterizations with 2 different interfaces (IDEA-163950)

4 years agoshow conflict if move as enum would change the semantics (IDEA-163248)
Anna.Kozlova [Tue, 15 Nov 2016 10:34:43 +0000 (11:34 +0100)]
show conflict if move as enum would change the semantics (IDEA-163248)

4 years agoinspection view: try to navigate to file or file+line if file's problem was fixed
Dmitry Batkovich [Tue, 15 Nov 2016 14:40:00 +0000 (17:40 +0300)]
inspection view: try to navigate to file or file+line if file's problem was fixed

4 years agoinspection view: clear single descriptor in RefElementNode if second problem was...
Dmitry Batkovich [Tue, 15 Nov 2016 14:33:09 +0000 (17:33 +0300)]
inspection view: clear single descriptor in RefElementNode if second problem was added

4 years agoCustom regions in structure view for all languages (IDEA-129599)
Rustam Vishnyakov [Tue, 15 Nov 2016 15:14:57 +0000 (18:14 +0300)]
Custom regions in structure view for all languages (IDEA-129599)

4 years agoremove SmartPsiElementPointerImpl.myElementClass
peter [Tue, 15 Nov 2016 15:59:44 +0000 (16:59 +0100)]
remove SmartPsiElementPointerImpl.myElementClass

4 years agoaccount for possible modal indexing finish under progress (IDEA-163999), add javadoc...
peter [Tue, 15 Nov 2016 15:55:31 +0000 (16:55 +0100)]
account for possible modal indexing finish under progress (IDEA-163999), add javadoc (IDEA-CR-15755)

4 years agoReopening Debugger Console causes IllegalArgumentException (PY-21457)
Elizaveta Shashkova [Tue, 15 Nov 2016 15:47:03 +0000 (18:47 +0300)]
Reopening Debugger Console causes IllegalArgumentException (PY-21457)

Add console folding to debug console once

4 years agoRUBY-18677: trim middle of the text instead of the end and increase the length to...
Valentin Fondaratov [Mon, 14 Nov 2016 16:49:44 +0000 (19:49 +0300)]
RUBY-18677: trim middle of the text instead of the end and increase the length to 20 for folding text

4 years agoIDEA-155623 Loading settings from settings repository fails to import live template
Vladimir Krivosheev [Tue, 15 Nov 2016 15:07:13 +0000 (16:07 +0100)]
IDEA-155623 Loading settings from settings repository fails to import live template

4 years agoextract addOptionTag
Vladimir Krivosheev [Tue, 15 Nov 2016 15:01:06 +0000 (16:01 +0100)]
extract addOptionTag

4 years agocleanup, use warn instead of info to report read error
Vladimir Krivosheev [Tue, 15 Nov 2016 14:47:52 +0000 (15:47 +0100)]
cleanup, use warn instead of info to report read error

4 years agoProvide headless focus manager for headless dialog because getFocusManager() can... appcode/171.988 clion/171.987
Ilya.Kazakevich [Tue, 15 Nov 2016 14:52:32 +0000 (17:52 +0300)]
Provide headless focus manager for headless dialog because getFocusManager() can't return null: it leads to NPE in headless environment.

4 years agobuild scripts: javadocs added
nik [Tue, 15 Nov 2016 14:49:41 +0000 (17:49 +0300)]
build scripts: javadocs added

4 years agoremove client allowStartingDumbModeInside usages
peter [Tue, 15 Nov 2016 14:38:15 +0000 (15:38 +0100)]
remove client allowStartingDumbModeInside usages

4 years agoCPP-7945 rainbow performance test + new local resolve
Alexey Utkin [Tue, 15 Nov 2016 14:00:12 +0000 (17:00 +0300)]
CPP-7945 rainbow performance test + new local resolve

4 years agoremoved unused class
Yaroslav Lepenkin [Tue, 15 Nov 2016 12:37:36 +0000 (15:37 +0300)]
removed unused class

4 years agoIDEA-163770 OS X: Actions can be invoked despite them being unavailable in modal...
Denis Fokin [Tue, 15 Nov 2016 13:22:34 +0000 (16:22 +0300)]
IDEA-163770 OS X: Actions can be invoked despite them being unavailable in modal context

4 years agofixed incorrect position of folding hints on hidpi
Egor.Ushakov [Tue, 15 Nov 2016 13:22:44 +0000 (16:22 +0300)]
fixed incorrect position of folding hints on hidpi

4 years agoMinor readability updates in PyReferenceImpl.resolveInner
Semyon Proshev [Thu, 27 Oct 2016 17:05:37 +0000 (20:05 +0300)]
Minor readability updates in PyReferenceImpl.resolveInner

4 years agoIntroduce PyOverridingReferenceResolveProvider and PythonOverridingBuiltinReferenceRe...
Semyon Proshev [Thu, 27 Oct 2016 17:01:16 +0000 (20:01 +0300)]
Introduce PyOverridingReferenceResolveProvider and PythonOverridingBuiltinReferenceResolveProvider as its implementation to handle implicit __class__

4 years agoAttempt to make PythonBuiltinReferenceResolveProvider more readable
Semyon Proshev [Thu, 27 Oct 2016 16:38:58 +0000 (19:38 +0300)]
Attempt to make PythonBuiltinReferenceResolveProvider more readable

4 years agoPass TypeEvalContext to PyReferenceResolveProvider
Semyon Proshev [Thu, 27 Oct 2016 16:33:05 +0000 (19:33 +0300)]
Pass TypeEvalContext to PyReferenceResolveProvider

4 years agoMove resolving module __doc__ to PythonBuiltinReferenceResolveProvider
Semyon Proshev [Thu, 27 Oct 2016 16:19:10 +0000 (19:19 +0300)]
Move resolving module __doc__ to PythonBuiltinReferenceResolveProvider

4 years agoDecrease number of warnings in PyReferenceImpl, PythonCompletionTest and Py3Completio...
Semyon Proshev [Tue, 2 Aug 2016 17:33:38 +0000 (20:33 +0300)]
Decrease number of warnings in PyReferenceImpl, PythonCompletionTest and Py3CompletionTest

4 years agoPY-20279 Fixed: Suggest implicit __class__ inside methods
Semyon Proshev [Tue, 2 Aug 2016 17:20:01 +0000 (20:20 +0300)]
PY-20279 Fixed: Suggest implicit __class__ inside methods

In PyReferenceImpl add implicit __class__ to lookup variants

4 years agoInherit os._wrap_close skeleton from io.TextIOWrapper[unicode] because it redirects... idea/171.984 rubymine/171.983
Semyon Proshev [Fri, 28 Oct 2016 16:53:00 +0000 (19:53 +0300)]
Inherit os._wrap_close skeleton from io.TextIOWrapper[unicode] because it redirects all calls to wrapped value

4 years agoPY-21040 Fixed: False positive: os.popen(...).close() doesn't return anything
Semyon Proshev [Fri, 28 Oct 2016 16:49:38 +0000 (19:49 +0300)]
PY-21040 Fixed: False positive: os.popen(...).close() doesn't return anything

Update os.popen skeleton to return class which has return value in close()

4 years agoIDEA-163920 NPE when saving proxy settings
Vladimir Krivosheev [Tue, 15 Nov 2016 12:42:48 +0000 (13:42 +0100)]
IDEA-163920 NPE when saving proxy settings

4 years agocleanup
Vladimir Krivosheev [Tue, 15 Nov 2016 11:46:05 +0000 (12:46 +0100)]
cleanup

4 years agoPY-20757 Fixed: Incorrect warning about expected attribute
Semyon Proshev [Thu, 10 Nov 2016 15:14:00 +0000 (18:14 +0300)]
PY-20757 Fixed: Incorrect warning about expected attribute

Make min skeletons generic.

4 years agoPY-20769 Fixed: Support PEP 519: File system path protocol
Semyon Proshev [Wed, 9 Nov 2016 16:29:20 +0000 (19:29 +0300)]
PY-20769 Fixed: Support PEP 519: File system path protocol

Update skeletons to accept PathLike objects in pathlib classes

4 years agoSupport type checking for positional arguments
Semyon Proshev [Wed, 9 Nov 2016 16:28:02 +0000 (19:28 +0300)]
Support type checking for positional arguments

4 years agoPY-20769 Fixed: Support PEP 519: File system path protocol
Semyon Proshev [Wed, 9 Nov 2016 16:20:31 +0000 (19:20 +0300)]
PY-20769 Fixed: Support PEP 519: File system path protocol

Update skeletons to accept PathLike objects in open and os.path functions

4 years agoPY-20769 Fixed: Support PEP 519: File system path protocol
Semyon Proshev [Sun, 25 Sep 2016 15:43:05 +0000 (18:43 +0300)]
PY-20769 Fixed: Support PEP 519: File system path protocol

Add __fspath__ to PY36_BUILTIN_METHODS

4 years agoPY-21083 Fixed: Inspection of float.fromhex expecting incorrect arguments
Semyon Proshev [Mon, 31 Oct 2016 12:49:36 +0000 (15:49 +0300)]
PY-21083 Fixed: Inspection of float.fromhex expecting incorrect arguments

Update 'constants.py' so 'float.fromhex' stub is generated with 'staticmethod' decorator, has correct modifier and PyCallByClassInspection doesn't show any warning

4 years agoPY-21083 Fixed: Inspection of float.fromhex expecting incorrect arguments
Semyon Proshev [Mon, 31 Oct 2016 12:47:25 +0000 (15:47 +0300)]
PY-21083 Fixed: Inspection of float.fromhex expecting incorrect arguments

Fix skeleton for float.fromhex

4 years agoRun PyQt tests with the latest version of envs plugin
Elizaveta Shashkova [Tue, 15 Nov 2016 12:27:51 +0000 (15:27 +0300)]
Run PyQt tests with the latest version of envs plugin

4 years agoPY-19702 Fixed: Unresolved metaclass attributes in children
Semyon Proshev [Thu, 3 Nov 2016 14:09:40 +0000 (17:09 +0300)]
PY-19702 Fixed: Unresolved metaclass attributes in children

In case of definition resolve attribute in metaclass definition and instance.
In case of instance check if metaclass is PyClass and look for attribute in instance attributes.
Same with completion.

4 years agorebuild chunk when groovy stub generator throws TypeNotPresentException (IDEA-163634)
peter [Tue, 15 Nov 2016 12:30:47 +0000 (13:30 +0100)]
rebuild chunk when groovy stub generator throws TypeNotPresentException (IDEA-163634)

4 years agofixed shadows on hidpi (we do not have x2 icons and scaled regular icons, which must...
Egor.Ushakov [Tue, 15 Nov 2016 12:30:04 +0000 (15:30 +0300)]
fixed shadows on hidpi (we do not have x2 icons and scaled regular icons, which must remain 1px wide/high)

4 years agotest framework: intention action availability must be checked
irengrig [Tue, 15 Nov 2016 10:01:58 +0000 (11:01 +0100)]
test framework: intention action availability must be checked

4 years agoMerge remote-tracking branch 'origin/master' appcode/171.981 clion/171.982
Dmitry Trofimov [Tue, 15 Nov 2016 11:51:49 +0000 (12:51 +0100)]
Merge remote-tracking branch 'origin/master'

4 years agoFix prompt in virtualenv auto activisation on Windows (PY-21452)
Dmitry Trofimov [Tue, 15 Nov 2016 11:40:55 +0000 (12:40 +0100)]
Fix prompt in virtualenv auto activisation on Windows (PY-21452)

4 years ago[Formatter] remove obvious comments
Yaroslav Lepenkin [Tue, 15 Nov 2016 10:09:01 +0000 (13:09 +0300)]
[Formatter] remove obvious comments

4 years agoEA-91739 - assert: DataBindingWizardAction.actionPerformed
Alexander Lobas [Tue, 15 Nov 2016 11:21:15 +0000 (14:21 +0300)]
EA-91739 - assert: DataBindingWizardAction.actionPerformed

4 years agoEA-91784 - Throwable: BalloonImpl.hideAndDispose clion/171.980
Alexander Lobas [Tue, 15 Nov 2016 11:13:02 +0000 (14:13 +0300)]
EA-91784 - Throwable: BalloonImpl.hideAndDispose

4 years agoIDEA-157763 Settings repository for IDE: unit tests phpstorm/171.979
Alexander Lobas [Tue, 15 Nov 2016 10:53:57 +0000 (13:53 +0300)]
IDEA-157763 Settings repository for IDE: unit tests

4 years agomove methods from PathMacroManager to PathMacroSubstitutor to avoid misunderstaning
Vladimir Krivosheev [Mon, 14 Nov 2016 15:42:45 +0000 (16:42 +0100)]
move methods from PathMacroManager to PathMacroSubstitutor to avoid misunderstaning
add javadoc to collapsePaths/collapsePathsRecursively

4 years agocleanup
Vladimir Krivosheev [Mon, 14 Nov 2016 15:38:20 +0000 (16:38 +0100)]
cleanup

4 years agocleanup
Vladimir Krivosheev [Mon, 14 Nov 2016 14:37:36 +0000 (15:37 +0100)]
cleanup

4 years agocleanup
Vladimir Krivosheev [Mon, 14 Nov 2016 11:36:17 +0000 (12:36 +0100)]
cleanup

4 years agosimplify ModifiableModel
Vladimir Krivosheev [Mon, 14 Nov 2016 10:02:50 +0000 (11:02 +0100)]
simplify ModifiableModel

4 years agojavac ast indices: don't add to log PCE
Dmitry Batkovich [Tue, 15 Nov 2016 10:02:55 +0000 (13:02 +0300)]
javac ast indices: don't add to log PCE

4 years ago[Parameter Name Hints] error message improved clion/171.978
Yaroslav Lepenkin [Tue, 15 Nov 2016 09:02:04 +0000 (12:02 +0300)]
[Parameter Name Hints] error message improved

4 years agobuild scripts: use relaxed since/until-build range for plugins built in nightly builds clion/171.977
nik [Tue, 15 Nov 2016 08:54:36 +0000 (11:54 +0300)]
build scripts: use relaxed since/until-build range for plugins built in nightly builds

4 years agoimprove error report appcode/171.970 clion/171.969 dbe/171.967 idea/171.971 phpstorm/171.972 pycharm/171.973 pycharm/171.974 rubymine/171.966 webstorm/171.976
Gregory.Shrago [Mon, 14 Nov 2016 22:57:02 +0000 (01:57 +0300)]
improve error report

4 years ago[git] fix deep comparator keeping highlighting after branch filter unset idea/171.965
Julia Beliaeva [Mon, 14 Nov 2016 21:29:26 +0000 (00:29 +0300)]
[git] fix deep comparator keeping highlighting after branch filter unset

When branch filter is unset, cherri-picked commits should be un-highlighted. But when this happen during refresh, visible pack arrives with both new graph and new filters. So DeepComparator should check filters first.

4 years agoworkaround for GwtLanguageLevel pusher to affect java language level
Maxim.Mossienko [Mon, 14 Nov 2016 21:18:50 +0000 (22:18 +0100)]
workaround for GwtLanguageLevel pusher to affect java language level

4 years ago[performance] avoid O(NumberOfDirectories^2) for init vfs / refresh for jars by stori...
Maxim.Mossienko [Mon, 14 Nov 2016 20:22:11 +0000 (21:22 +0100)]
[performance] avoid O(NumberOfDirectories^2) for init vfs / refresh for jars by storing compact parent -> children mapping

4 years agoPY-18473: Find Python using win registry and pep-514
Ilya.Kazakevich [Fri, 7 Oct 2016 18:06:54 +0000 (21:06 +0300)]
PY-18473: Find Python using win registry and pep-514

* Using DI to remove WinPythonSdkFlavor dependency on registry tools and make it testable
* Check all registry branches according to pep514

4 years agodrop caches on non-physical file context change (a more universal fix for EA-69690...
peter [Mon, 14 Nov 2016 19:39:39 +0000 (20:39 +0100)]
drop caches on non-physical file context change (a more universal fix for EA-69690 - PIEAE: StubBasedPsiElementBase.getContainingFile)

4 years agouse DumbService#completeJustSumbittedTasks in some places between VFS changes and...
peter [Mon, 14 Nov 2016 19:31:22 +0000 (20:31 +0100)]
use DumbService#completeJustSumbittedTasks in some places between VFS changes and reference resolve

4 years agorun modal indexing when requested explicitly and not during VFS event processing...
peter [Mon, 14 Nov 2016 19:23:19 +0000 (20:23 +0100)]
run modal indexing when requested explicitly and not during VFS event processing (IDEA-163418, EA-91382)

4 years agoCorrect recognition that the specified action is not an action group
Sergey Malenkov [Mon, 14 Nov 2016 19:17:59 +0000 (22:17 +0300)]
Correct recognition that the specified action is not an action group

4 years agoinplace change signature: show initial signature in action text appcode/171.964
Anna.Kozlova [Mon, 14 Nov 2016 18:02:53 +0000 (19:02 +0100)]
inplace change signature: show initial signature in action text

4 years agoextract delegate: ensure class fqns are not lost (IDEA-163265)
Anna.Kozlova [Mon, 14 Nov 2016 17:09:25 +0000 (18:09 +0100)]
extract delegate: ensure class fqns are not lost (IDEA-163265)

4 years agodisable extract class for non-project sources
Anna.Kozlova [Mon, 14 Nov 2016 16:28:05 +0000 (17:28 +0100)]
disable extract class for non-project sources

4 years agosubstitute base class according to resolve place
Anna.Kozlova [Mon, 14 Nov 2016 14:31:58 +0000 (15:31 +0100)]
substitute base class according to resolve place
EA-90836 - assert: InferenceSession.collectApplicabilityConstraints

4 years agoFix test for jinja2 template debugger
Elizaveta Shashkova [Mon, 14 Nov 2016 17:51:14 +0000 (20:51 +0300)]
Fix test for jinja2 template debugger

4 years agoMerge remote-tracking branch 'origin/master'
Anton Makeev [Mon, 14 Nov 2016 17:07:21 +0000 (18:07 +0100)]
Merge remote-tracking branch 'origin/master'

4 years agoMake IndentCalculator class public
Alexander Doroshko [Mon, 14 Nov 2016 16:23:09 +0000 (19:23 +0300)]
Make IndentCalculator class public

4 years agoEA-88548 - IAE: TObjectHash.throwObjectContractViolation
Aleksey Pivovarov [Mon, 14 Nov 2016 16:04:48 +0000 (19:04 +0300)]
EA-88548 - IAE: TObjectHash.throwObjectContractViolation

4 years agoMinor: rename variable (PY-21373)
Elizaveta Shashkova [Mon, 14 Nov 2016 16:06:39 +0000 (19:06 +0300)]
Minor: rename variable (PY-21373)

4 years agoshow emulated checkbox (disabled by default for now)
Egor.Ushakov [Mon, 14 Nov 2016 15:34:57 +0000 (18:34 +0300)]
show emulated checkbox (disabled by default for now)

4 years agosupport emulated flag in breakpoints tests
Egor.Ushakov [Mon, 14 Nov 2016 15:34:14 +0000 (18:34 +0300)]
support emulated flag in breakpoints tests

4 years agotest breakpoints code cleanup
Egor.Ushakov [Mon, 14 Nov 2016 14:48:18 +0000 (17:48 +0300)]
test breakpoints code cleanup

4 years agoFix script for tests in case if the directory exists, but it's empty
Elizaveta Shashkova [Mon, 14 Nov 2016 15:19:43 +0000 (18:19 +0300)]
Fix script for tests in case if the directory exists, but it's empty

4 years agovalidate console components to make sure layered pane gets proper size from editor... appcode/171.963 clion/171.962
Dennis Ushakov [Mon, 14 Nov 2016 14:57:16 +0000 (17:57 +0300)]
validate console components to make sure layered pane gets proper size from editor (WEB-12508)

4 years ago[Parameter Name Hints] missed part of previous diagnostic commit
Yaroslav Lepenkin [Mon, 14 Nov 2016 13:31:01 +0000 (16:31 +0300)]
[Parameter Name Hints] missed part of previous diagnostic commit

4 years agocancel emulation in progress
Egor.Ushakov [Mon, 14 Nov 2016 14:23:14 +0000 (17:23 +0300)]
cancel emulation in progress

4 years agoMerge remote-tracking branch 'origin/master'
Dmitry Trofimov [Mon, 14 Nov 2016 14:17:19 +0000 (15:17 +0100)]
Merge remote-tracking branch 'origin/master'

4 years agoFix saving the shell path project setting (IDEA-163474)
Dmitry Trofimov [Mon, 14 Nov 2016 14:13:27 +0000 (15:13 +0100)]
Fix saving the shell path project setting (IDEA-163474)

4 years ago[tests] comments appcode/171.961
Roman Shevchenko [Mon, 14 Nov 2016 13:48:59 +0000 (14:48 +0100)]
[tests] comments

4 years ago[Parameter Name Hints] added diagnostic
Yaroslav Lepenkin [Mon, 14 Nov 2016 12:46:34 +0000 (15:46 +0300)]
[Parameter Name Hints] added diagnostic

4 years agoIDEA-163033 ui: fix plugin update dialog undex HiDPI
Aleksey Pivovarov [Mon, 14 Nov 2016 12:57:39 +0000 (15:57 +0300)]
IDEA-163033 ui: fix plugin update dialog undex HiDPI

4 years agodiff: cleanup tests
Aleksey Pivovarov [Mon, 14 Nov 2016 12:42:52 +0000 (15:42 +0300)]
diff: cleanup tests

4 years agomerge: EA-91241 - assert: DiffUtil.getMergeType
Aleksey Pivovarov [Mon, 14 Nov 2016 09:08:09 +0000 (12:08 +0300)]
merge: EA-91241 - assert: DiffUtil.getMergeType

* ensure that "conflict" block is not "unchanged"
  this might've happen for trim/ignore policies

* add tests for three-side cases

4 years agodiff: separate tests for words and inner fragments
Aleksey Pivovarov [Fri, 11 Nov 2016 09:55:37 +0000 (12:55 +0300)]
diff: separate tests for words and inner fragments

4 years agoRuby remote sdk configuration. Processing dialog from terminal + default password
Andrey Vokin [Fri, 11 Nov 2016 13:48:22 +0000 (14:48 +0100)]
Ruby remote sdk configuration. Processing dialog from terminal + default password

4 years agomore compact code
Maxim.Mossienko [Mon, 14 Nov 2016 12:11:47 +0000 (13:11 +0100)]
more compact code

4 years agoannotations.xml syntax checker appcode/171.960
Alexey Kudravtsev [Sat, 12 Nov 2016 11:47:36 +0000 (14:47 +0300)]
annotations.xml syntax checker

4 years agocancel earlier: even when isReadAccessAllowed() or nested runReadAction() are called...
Alexey Kudravtsev [Sat, 12 Nov 2016 09:42:17 +0000 (12:42 +0300)]
cancel earlier: even when isReadAccessAllowed() or nested runReadAction() are called under impatient reader with pending write

4 years agodiagnostics
Alexey Kudravtsev [Fri, 11 Nov 2016 15:23:51 +0000 (18:23 +0300)]
diagnostics

4 years agocleanup
Alexey Kudravtsev [Fri, 11 Nov 2016 13:49:49 +0000 (16:49 +0300)]
cleanup

4 years agoFix PY-21430 "File of this document has been deleted" exception after removing noteb...
Valentina Kiryushkina [Mon, 14 Nov 2016 09:31:27 +0000 (12:31 +0300)]
Fix  PY-21430 "File of this document has been deleted" exception after removing notebook and switching interpreter: Dispose message bus connection for IpnbFilePanel

4 years agoFix PY-21428 Cutting only cell raises ArrayIndexOutOfBoundsException
Valentina Kiryushkina [Mon, 14 Nov 2016 08:26:08 +0000 (11:26 +0300)]
Fix  PY-21428 Cutting only cell raises ArrayIndexOutOfBoundsException

4 years agoFix PY-21427 Double click on the output field inside jupyter notebook raises Unsuppo...
Valentina Kiryushkina [Mon, 14 Nov 2016 08:20:30 +0000 (11:20 +0300)]
Fix  PY-21427 Double click on the output field inside jupyter notebook raises UnsupportedOperationException: use mutable collections instead of EmptyMap, EmptyList

4 years agoFix PY-21429 Duplicate output in Jupyter Notebook
Valentina Kiryushkina [Fri, 11 Nov 2016 18:48:42 +0000 (21:48 +0300)]
Fix PY-21429 Duplicate output in Jupyter Notebook

4 years agoio: Add BaseDataReader.waitFor(long, TimeUnit) appcode/171.958 clion/171.959
Eldar Abusalimov [Mon, 14 Nov 2016 09:50:16 +0000 (12:50 +0300)]
io: Add BaseDataReader.waitFor(long, TimeUnit)